/* Sleigh Page Clean Layout */
.sleigh-type {
    margin-bottom: 40px;
    padding: 10px 0;
}

.sleigh-type h2 {
    font-family: 'Libre Baskerville', serif;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.6em;
}

.sleigh-type p {
    margin-bottom: 6px;
    line-height: 1.5;
}

.dimensions {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

/* Gallery Thumbnail Row */
.sleigh-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.sleigh-gallery a {
    display: inline-block;
    width: 22%; /* Fits 4 images nicely across a row with gaps */
    min-width: 120px;
}

.sleigh-gallery img {
    width: 100%;
    height: 150px; /* Gives them a uniform height */
    object-fit: cover; /* Prevents squishing or stretching */
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.sleigh-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-instruction {
    font-style: italic;
    color: #c31127; /* Uses your theme's red accent color */
    margin-top: 10px;
    font-size: 0.85em;
}

.sleigh-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

/* ==========================================
   LIGHTBOX MODAL STYLES
   ========================================== */
.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 99999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 75vh;
    object-fit: contain;
    animation: lightboxZoom 0.25s ease-out;
}

@keyframes lightboxZoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #c31127;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 30px;
    padding: 16px;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.2s;
}

.lightbox-prev { left: 10px; border-radius: 0 3px 3px 0; }
.lightbox-next { right: 10px; border-radius: 3px 0 0 3px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sleigh-gallery a {
        width: 46%; /* Drops to 2 per row on smaller screens */
    }
    .lightbox-content {
        width: 95%;
        margin-top: 40px;
    }
}