.gallery-page-wrapper {
    max-width: 1200px;
    margin: 145px auto 0;
    padding: 0 2rem 4rem;
    min-height: calc(100vh - 125px - 300px);
}

.gallery-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #3a2c1e 0%, #c9a449 50%, #214d26 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.gallery-page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #c9a449, #214d26);
    border-radius: 3px;
}

.gallery-page-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.gallery-video-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.gallery-photo-column {
    flex: 2.3;
    min-width: 0;
}

.gallery-video-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid #b6b6b6;
    background: #f5f5f5;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 44, 30, 0.85);
    backdrop-filter: blur(4px);
    color: #f5e6d3;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
    z-index: 2;
    border-top: 1px solid rgba(201, 164, 73, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    visibility: visible;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.video-list::-webkit-scrollbar {
    width: 4px;
}

.video-list::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb {
    background: var(--gold-accent, #c9a449);
    border-radius: 10px;
}

.video-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #b6b6b6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-thumbnail-small {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a2e;
    overflow: hidden;
}

.video-thumbnail-small iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-link-fallback-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-brown, #3a2c1e);
}

.video-link-fallback-small a {
    color: white;
    text-decoration: none;
    font-size: 36px;
}

.video-link-fallback-small a:hover {
    color: var(--gold-accent, #c9a449);
}

.video-info-small {
    padding: 12px 14px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.video-caption-small {
    color: #333;
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.video-no-data-small {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.85rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 20px;
}

.gallery-empty i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.gallery-empty p {
    color: #666;
    font-size: 1.1rem;
}

.gtg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gtg-lightbox.active {
    display: flex;
    opacity: 1;
}

.gtg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gtg-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gtg-lightbox-caption {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 14px;
    border-radius: 30px;
    max-width: 90%;
    margin-top: 20px;
    word-wrap: break-word;
    line-height: 1.5;
}

.gtg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.gtg-lightbox-close:hover {
    background: #c9a449;
    transform: rotate(90deg);
}

.gtg-lightbox-prev,
.gtg-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.gtg-lightbox-prev:hover,
.gtg-lightbox-next:hover {
    background: #c9a449;
    transform: translateY(-50%) scale(1.1);
}

.gtg-lightbox-prev {
    left: 20px;
}

.gtg-lightbox-next {
    right: 20px;
}

.gtg-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 100000;
}

body.lightbox-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.gallery-image-container.image-error {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container.image-error::after {
    content: '📷';
    font-size: 2rem;
    opacity: 0.4;
    color: #999;
}

@media (max-width: 992px) {
    .gallery-video-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-photo-column,
    .gallery-video-column {
        width: 100%;
        flex: auto;
    }
    
    .video-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .gallery-page-wrapper {
        margin-top: 125px;
        padding: 0 0.75rem 2rem;
    }

    .gallery-page-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .gallery-page-subtitle {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .gallery-page-header {
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .gallery-item {
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    .gallery-caption {
        font-size: 0.65rem;
        padding: 6px 4px;
    }
    
    .video-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .video-item {
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    .video-info-small {
        padding: 8px 10px;
    }
    
    .video-caption-small {
        font-size: 0.7rem;
    }
    
    .gtg-lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .gtg-lightbox-prev,
    .gtg-lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .gtg-lightbox-prev {
        left: 10px;
    }

    .gtg-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 580px) {
    .gallery-grid {
        gap: 0.5rem;
    }
    
    .gallery-page-wrapper {
        padding: 0 0.5rem 1.5rem;
    }
    
    .gallery-caption {
        font-size: 0.6rem;
        padding: 4px 3px;
    }
}

@media (max-width: 480px) {
    .gallery-page-wrapper {
        margin-top: 135px;
        padding: 0 0.5rem 1.5rem;
    }
    
    .gallery-page-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-caption {
        font-size: 0.55rem;
        padding: 4px 2px;
    }
    
    .gallery-item {
        border-radius: 10px;
    }
}

@media (max-width: 380px) {
    .gallery-page-wrapper {
        padding: 0 0.4rem 1rem;
    }
    
    .gallery-grid {
        gap: 0.4rem;
    }
    
    .gallery-caption {
        font-size: 0.5rem;
        padding: 3px 2px;
    }
    
    .gallery-page-title {
        font-size: 1.3rem;
    }
}