/* Property Gallery Grid */
.gsuk-property-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
    max-width: 100%;
}

/* Gallery Navigation Buttons */
.gsuk-gallery-nav {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    flex-direction: row;
}

.gsuk-gallery-nav-btn {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.gsuk-gallery-nav-btn.active {
    background: #fff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gsuk-gallery-nav-btn:hover {
    background: #fff;
    color: #333;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gsuk-gallery-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gsuk-gallery-nav-text {
    white-space: nowrap;
    font-weight: 500;
}
.gsuk-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 8/5;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #f8f9fa;
    grid-column: 1 / 3;
}
.gsuk-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.gsuk-gallery-main:hover img {
    transform: scale(1.02);
}
.gsuk-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    min-width: 0;
    grid-column: 3 / 4;
}
.gsuk-gallery-side-img {
    flex: 1 1 0;
    width: 100%;
    aspect-ratio: 8/5;
    overflow: hidden;
    border-radius: 0;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gsuk-gallery-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease;
}

.gsuk-gallery-side-img:hover img {
    transform: scale(1.05);
}
.gsuk-gallery-empty {
    color: #888;
    font-style: italic;
    padding: 1.5rem 0;
    text-align: center;
}
@media (max-width: 900px) {
    .gsuk-property-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .gsuk-gallery-main {
        grid-column: 1 / 2;
    }
    .gsuk-gallery-side {
        grid-column: 2 / 3;
    }
    .gsuk-gallery-main, .gsuk-gallery-side-img {
        border-radius: 0;
    }
}
@media (max-width: 767px) {
    .gsuk-property-gallery {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .gsuk-gallery-main {
        width: 100%;
        aspect-ratio: 4/3;
        position: relative;
        order: 1;
    }
    .gsuk-gallery-side {
        display: none;
    }
    
    /* Mobile navigation adjustments - position below image */
    .gsuk-gallery-nav {
        position: static;
        bottom: auto;
        left: auto;
        gap: 0.3rem;
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding: 0 0.5em;
        order:2;
    }
    
    .gsuk-gallery-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 80px;
        background: #fff;
        color: #333;
    }
    
    .gsuk-gallery-nav-icon {
        width: 16px;
        height:16px;
    }
    
    .gsuk-gallery-lightbox-trigger {
        display: none;
    }
    
    /* Adjust pagination for mobile */
    .gsuk-gallery-pagination {
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ensure consistent spacing and alignment */
.gsuk-property-gallery {
    align-items: start;
}

.gsuk-gallery-side {
    justify-content: space-between;
}

/* Add subtle shadows for depth */
.gsuk-gallery-main,
.gsuk-gallery-side-img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    }

.gsuk-gallery-main:hover,
.gsuk-gallery-side-img:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
} 

/* Lightbox Modal */
.gsuk-gallery-lightbox {
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: none;
    margin: 0;
    padding: 0;
}
.gsuk-gallery-lightbox[style*="display: block"] {
    pointer-events: auto;
}
.gsuk-gallery-lightbox-backdrop {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 1;
}
.gsuk-gallery-lightbox-content {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}
.gsuk-gallery-lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    object-fit: contain;
    margin: 0;
    display: block;
}
.gsuk-gallery-lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
    padding: 0.2em 0.5em;
}
.gsuk-gallery-lightbox-close:hover {
    color: #ff5252;
}
.gsuk-gallery-lightbox-prev,
.gsuk-gallery-lightbox-next {
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.gsuk-gallery-lightbox-prev { left: 2rem; }
.gsuk-gallery-lightbox-next { right: 2rem; }
.gsuk-gallery-lightbox-prev:hover,
.gsuk-gallery-lightbox-next:hover {
    background: #0077c8;
    color: #fff;
}
.gsuk-gallery-lightbox-count {
    position: fixed;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 0.3em 1em;
    border-radius: 2em;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    z-index: 10;
}
@media (max-width: 700px) {
    .gsuk-gallery-lightbox-img {
        max-width: 100vw;
        max-height: 100vh;
    }
    .gsuk-gallery-lightbox-prev { left: 0.5rem; width: 2.5rem; height: 2.5rem; font-size: 2rem; }
    .gsuk-gallery-lightbox-next { right: 0.5rem; width: 2.5rem; height: 2.5rem; font-size: 2rem; }
    .gsuk-gallery-lightbox-close { right: 0.7rem; top: 0.7rem; font-size: 2rem; padding: 0.3em 0.7em; }
    .gsuk-gallery-lightbox-count { bottom: 1.2rem; font-size: 1rem; padding: 0.3em 0.8em; }
    .gsuk-gallery-lightbox-content { min-width: 0; min-height: 0; }
}
@media (max-width: 767px) {
    .gsuk-property-gallery {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .gsuk-gallery-side {
        flex-direction: row;
        gap: 0.25rem;
    }
    .gsuk-gallery-side-img {
        aspect-ratio: 1/1;
    }
    .gsuk-gallery-main, .gsuk-gallery-side-img {
        border-radius: 0;
    }
    .gsuk-gallery-main img, .gsuk-gallery-side-img img {
        border-radius: 0;
    }
}
@media (max-width: 400px) {
    .gsuk-gallery-lightbox-prev, .gsuk-gallery-lightbox-next {
        width: 2rem; height: 2rem; font-size: 1.3rem;
    }
    .gsuk-gallery-lightbox-close {
        font-size: 1.3rem; right: 0.3rem; top: 0.3rem; padding: 0.2em 0.5em;
    }
    .gsuk-gallery-lightbox-count {
        font-size: 0.85rem; padding: 0.2em 0.5em;
    }
} 

/* Custom GSUK Styles */
/* Active Tab */
.gsuk-nearby-amenities .gsuk-na-tabs .active {
    background-color: #251552 !important;
    color: #ffffff !important;
    width: 25%;
}
/* Tab */
.gsuk-nearby-amenities .gsuk-na-tabs .gsuk-na-tab {
    background-color: #bd9060;
    color: #ffffff;
    width: 25%;
}
/* Gallery Count Overlay */
.gsuk-property-gallery .gsuk-gallery-main .gsuk-gallery-count {
    background-color: #1d1d1a;
    border-radius: 25px;
    padding-left: 20px;
    font-size: 16px;
}
/* Lightbox Prev */
.gsuk-property-gallery .active .gsuk-gallery-lightbox-prev {
    background-color: rgba(2,2,2,0) !important;
    font-size: 25px !important;
}
/* Lightbox Close */
.gsuk-property-gallery .active .gsuk-gallery-lightbox-close {
    background-color: rgba(2,2,2,0) !important;
    font-size: 50px !important;
}
/* Lightbox Next */
.gsuk-property-gallery .active .gsuk-gallery-lightbox-next {
    background-color: rgba(2,2,2,0) !important;
    font-size: 25px !important;
}

/* Responsive adjustments for custom styles */
@media (max-width: 767px) {
    .gsuk-nearby-amenities .gsuk-na-tabs .gsuk-na-tab,
    .gsuk-nearby-amenities .gsuk-na-tabs .active {
        width: 50%;
        font-size: 0.98rem;
        padding: 0.7rem 0.2rem;
    }
    .gsuk-property-gallery .gsuk-gallery-main .gsuk-gallery-count {
        font-size: 13px;
        padding-left: 12px;
    }
    .gsuk-property-gallery .active .gsuk-gallery-lightbox-close {
        font-size: 32px !important;
    }
    .gsuk-property-gallery .active .gsuk-gallery-lightbox-prev,
    .gsuk-property-gallery .active .gsuk-gallery-lightbox-next {
        font-size: 18px !important;
    }
} 

.gsuk-gallery-lightbox-trigger {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 2;
}
.gsuk-gallery-lightbox-trigger:hover {
    background: rgba(0,0,0,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.gsuk-gallery-lightbox-trigger svg {
    display: block;
    width: 22px;
    height: 22px;
} 

/* Pagination Dots - Desktop (hidden on mobile) */
.gsuk-gallery-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gsuk-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.gsuk-gallery-dot.active {
    background: #fff;
}

.gsuk-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
} 

/* Mobile-only pagination dots */
@media (max-width: 767px) {
    .gsuk-gallery-pagination {
        display: flex;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .gsuk-gallery-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.6);
    }
    
    .gsuk-gallery-dot.active {
        background: #fff;
        transform: scale(1.2);
    }
}

/* Hide pagination on desktop */
@media (min-width: 768px) {
    .gsuk-gallery-pagination {
        display: none;
    }
} 