/* Additional styles for the room details modal */
.amenities-modal .modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    background-color: #fff;
}

.amenities-modal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    padding: 15px 20px;
}

.amenities-modal .modal-body {
    padding: 20px;
    background-color: #fff;
}

.amenities-modal .modal-footer {
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    padding: 15px 20px;
}

.amenities-modal .close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Booking.com style gallery */
.amenities-modal #roomGallery {
    width: 100%;
}

.amenities-modal .main-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.amenities-modal .main-room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amenities-modal .room-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.amenities-modal .room-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.amenities-modal .room-thumbnail {
    width: 80px;
    height: 60px;
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.amenities-modal .room-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.amenities-modal .room-thumbnail.active {
    opacity: 1;
    border-color: #0071c2;
}

.amenities-modal .room-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenities-modal .room-basic-info {
    margin-bottom: 20px;
}

.amenities-modal .room-meta {
    margin: 10px 0;
    color: #555;
}

.amenities-modal .room-meta i {
    margin-right: 5px;
    color: #007bff;
}

.amenities-modal .room-price {
    font-weight: bold;
    color: #28a745;
}

.amenities-modal #roomName {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.amenities-modal #roomDescription {
    line-height: 1.5;
    color: #555;
}

ul.xoxo.listingsidebar .widget-title-sidebar{
    margin-top:2px !important;
}
body {
    margin: 0;
    padding: 0;
}

#head {
    /* height: 60px; */
    background: #fff;
}

.bi {
    margin-left: 40px;
}


.gallery_images img {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: 1s ease;
}

#imagex {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin: 0 auto;
}

#imagex img {
    width: 100%;
    height: 100%;
}

#setup {
    height: 408px;

}

.height_img img {
    width: 343px;
    height: 404px;
    margin-left: 584px;
    margin-top: -438px;
    margin-bottom: 3px;
    overflow: clip;
}


#weidth_img img {
    width: 342px;
    height: 200px;
    display: block;
    margin-bottom: 3px;
    margin-left: 235px;
}

.gallery_images .image_holder {
    width: 100%;
    margin: 0;
    position: relative;
}

.image_overlay {
    background: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    transition: all 0.3s;
}

.image_overlay:hover {
    background-color: #00000057;
}

.image_holder_sided {
    margin: 0px auto;
    position: relative;
    width: 100%;
}

.left_holder {
    margin: 0px auto;
    position: relative;
    width: 100%;
}

.left_holder img {
    height: 100%;
}

.right_tall .image_holder_sided img {
    max-height: 500px;
}

.gallery_container {
    width: 100%;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    margin: 0px auto;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0;
    box-sizing: border-box;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    height: 100%;
}

.gallery_image {
    width: 100%;
    height: 100%;
}

.right_line_gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    height: 100%;
    overflow: hidden;
}

.right_gallery {
    position: relative;
}

.show_all {
    background: white;
    width: 150px;
    text-align: center;
    padding: 10px;
    border-radius: 7px;
    border: 1.5px solid #000;
    color: #000;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: 500;
    position: absolute;
    right: 25px;
    bottom: 20px;
    display: flex;
    cursor: pointer;
}

.left_icon {
    margin-right: 5px;
    position: relative;
    top: 1px;
}

.image_holder {
    position: relative;
    height: 100%;
    width: 100%;
}

.darkish_overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    transition: all 0.3s;
    cursor: pointer;
}

.darkish_overlay:hover {
    background-color: #00000045;
}


.grid_display {
    display: flex;
    justify-content: space-between;
    padding: 10px 25px;
    width: 90%;
    position:fixed;
}

.sided_icon_holder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 15px;
    border-radius: 7px;
    grid-gap: 5px;
    transition: all 0.3s;
}

.sided_icon_holder:hover {
    background: #f7f7f7;
}

.back_btn,
.sided_icon_holder,
.right_sided_icons {
    display: flex;
    grid-gap: 5px;
    /* padding: 20px 0px 0px 0px; */
}

.gallery_holder {
    margin-bottom: 0px;
    margin-top: -33px;
}


.full_popup {
    /* 
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 80px;
    */
    display: none;
    width: 100%;
    height: 100vh; /* ensure full viewport coverage */
    overflow-y: auto;
    background: #fff; /* white backdrop for overview */
}

/* Ensure wrappers do not add backgrounds in overview */
.full_popup .gallery_holder,
.full_popup .gallery_images,
.full_popup .image_holder,
.full_popup .image_holder_sided,
.full_popup .image_1st,
.full_popup #imagex,
.full_popup .full_width {
    background: #fff !important; /* match backdrop to avoid seams */
}

.full_popup img.gallery_main_img {
    object-fit: contain;
    width: 100%;
    height: auto;
    background: transparent;
}

.show_full_popup {
    background: #fff; /* white backdrop */
    position: fixed; /* cover viewport so base gallery is hidden */
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    opacity: 1;
    display: block;
}

/* Desktop overview: Airbnb-like masonry grid, tight gutters, centered container */
.show_full_popup .gallery_holder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 48px; /* comfortable gutters, ensure last row visible */
}

.show_full_popup .gallery_images {
    column-count: 3; /* Airbnb-like masonry */
    column-gap: 12px;
}

@media (max-width: 1199px) {
    .show_full_popup .gallery_images { column-count: 2; }
}
@media (max-width: 767px) {
    .show_full_popup .gallery_images { column-count: 1; }
}

/* Each tile behaves as a block within masonry columns */
.show_full_popup .gallery_images .image_holder,
.show_full_popup .gallery_images .image_holder_sided,
.show_full_popup .gallery_images .image_1st,
.show_full_popup .gallery_images .full_width {
    display: inline-block; /* required for column masonry */
    width: 100%;
    margin: 0 0 12px; /* vertical gutter */
    background: #fff;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* Flatten the paired wrapper inside overview so each image stacks naturally */
.show_full_popup #imagex { display: contents; }
.show_full_popup #imagex .image_holder_sided { display: block; width: 100%; }

/* Ensure images are not oversized and remove any extra bottom space */
.show_full_popup img.gallery_main_img,
.show_full_popup picture > img,
.show_full_popup .gallery_images img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* fill width nicely like Airbnb thumbnails */
}

/* Remove any hover overlays in overview */
.show_full_popup .image_overlay { display: none !important; }





/* //popup slider css  */
.popup_body {
    width: 100%;
    min-height: 100%;
    background-color: #fff; /* white backdrop for slider */
    color: #015ca5;
    display: none;
}

.show_popup {
    display: block;
    position: absolute;
    z-index: 2000;
    top: 0px;
    left: 0px;
}

.popup_header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: transparent;
    position: relative;
    top: 0px;
    left: 0px;
    padding: 20px;
    color: #015ca5;
}

.icon_holder {
    display: flex;
    align-items: center;
    grid-gap: 5px;
}

.center_header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.right_header {
    display: flex;
    justify-content: end;
    grid-gap: 10px;
}

.close_icon_holder {
    display: flex;
    align-items: center;
    grid-gap: 5px;
    height: auto;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 8px;
    width: fit-content;
    padding: 10px 20px;
    border: 2px solid #fff;
    outline: none;
}

.icon_holder {
    display: flex;
    align-items: center;
    grid-gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.icon_holder:hover {
    background: #383838;
}

.close_icon_holder:hover {
    background: #383838;
    border: 2px solid #383838;
}



.popup_body_center {
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.popup_slidering_body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex: 1;
    min-height: 350px;
}

.slider_grid_part {
    display: flex;
    grid-gap: 50px;
    height: 100%;
    align-items: center;
    width: 100%;
    padding: 0px 75px;
    flex: 1;
}

.sliderleft_arrow {
    transition: all 0.3s;
    color: white;
    width: 50px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: 2px solid #eee;
}

.sliderright_arrow {
    transition: all 0.3s;
    color: white;
    width: 50px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: 2px solid #eee;
}

.sliderleft_arrow:hover,
.sliderright_arrow:hover {
    background: #383838;
}

.middle_slider {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sliderimage {
    max-width: 800px;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive image sizing for different screen sizes */
@media (max-width: 1200px) {
    .sliderimage {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .sliderimage {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .sliderimage {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .sliderimage {
        max-width: 100%;
        padding: 0 20px;
    }
}


.popup_footer {
    text-align: center;
    color: #ddd;
    margin-top: 25px;
    margin-bottom: 25px;
}


.full_width {
    width: 100%;
}


.left_right_tall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    width: 1170px;
    margin: 0px auto;
    margin-bottom: 10px;
}

.left_smalls {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 10px;
}




@media screen and (max-width: 1000px) {
    .popup_header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: transparent;
        position: relative;
        top: 0px;
        left: 0px;
        padding: 20px;
    }

    .popup_slidering_body {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        height: 400px;
    }

    .slider_grid_part {
        display: flex;
        grid-gap: 10px;
        height: inherit;
        align-items: center;
        width: 100%;
        padding: 0px 0px;
    }



    .sliderleft_arrow {
        transition: all 0.3s;
        color: white;
        width: 50px;
        height: 42px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
    }

    .middle_slider {
        max-width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
    }

    .sliderimage {
        width: 100%;
        height: 100%;
    }


    #imagex {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
        margin: 10px auto;
    }

    .left_right_tall {
        width: 100%;
    }

    .gallery_images .image_holder {
        width: 100%;
        height: auto;
    }


    .full_popup {
        /* padding-left: 25px;
        padding-right: 25px; */
    }

    .sliderleft_arrow,
    .sliderright_arrow {
        display: none;
    }
}

@media screen and (max-width: 700px) {
    .popup_slidering_body {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        height: 250px;
        width: auto;
    }

    .gallery_container {
        border-radius: unset;
        max-height: 400px;
        height: unset;
    }

    .gallery {
        display: block;
    }

    .right_gallery {
        display: none;
    }
}

/* Desktop-specific fixes for full-viewport gallery experience */
@media screen and (min-width: 1001px) {
    .show_full_popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        overflow-y: auto;
    }
    .show_popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
    }
    .popup_body_center {
        height: calc(100vh - 100px);
    }
    .popup_slidering_body {
        min-height: 0;
    }
    .slider_grid_part {
        padding: 0 40px;
    }
    .middle_slider {
        max-width: 90vw;
        max-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .middle_slider .sliderimage,
    .sliderimage {
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 80vh;
        object-fit: contain;
    }

    /* Make overview (second instance) images contained as well */
    .full_popup .gallery_holder img,
    .full_popup .gallery_holder picture {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Clean amenities section styling - preserving Bootstrap structure */
.features_wrapper {
    margin-bottom: 30px;
}

.features_wrapper .panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: block;
}

.features_wrapper .amenitieslistclass {
    margin-top: 15px;
}

/* Only target rows within the amenities section */
.features_wrapper .amenitieslistclass .row {
    margin-left: -10px;
    margin-right: -10px;
    display: flex;
    flex-wrap: wrap;
}

/* Only target col-md-4 within amenities section */
.features_wrapper .amenitieslistclass .row .col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* Only target listing_detail within amenities section */
.features_wrapper .amenitieslistclass .listing_detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    height: auto;
    min-height: 150px;
}

.features_wrapper .amenitieslistclass .listing_detail:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.features_wrapper .amenitieslistclass .listing_detail .boldtext {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-left: 8px;
    display: inline-block;
    margin-bottom: 8px;
}

.features_wrapper .amenitieslistclass .listing_detail > i,
.features_wrapper .amenitieslistclass .listing_detail > img {
    color: #015ca5;
    font-size: 16px;
    vertical-align: middle;
}

.features_wrapper .amenitieslistclass .listing_detail .col-md-12 {
    padding: 0;
}

.features_wrapper .amenitieslistclass .listing_detail ul {
    padding-left: 0;
    margin-top: 8px;
    margin-bottom: 0 !important;
    list-style: none;
}

.features_wrapper .amenitieslistclass .listing_detail li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.features_wrapper .amenitieslistclass .listing_detail li i,
.features_wrapper .amenitieslistclass .listing_detail li img {
    position: absolute;
    left: 0;
    top: 5px;
    color: #015ca5;
    font-size: 12px;
    width: 16px;
}

.features_wrapper .amenitieslistclass .listing_detail .checkon {
    color: #28a745 !important;
}

.features_wrapper .amenitieslistclass .listing_detail .not_present i {
    color: #dc3545 !important;
}

.features_wrapper .amenitieslistclass .listing_detail a.mainshowmore {
    color: #015ca5;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    border-top: 1px solid #eee;
}

.features_wrapper .amenitieslistclass .listing_detail a.mainshowmore:hover {
    text-decoration: underline;
}

/* Responsive adjustments - only for amenities section */
@media (max-width: 991px) {
    .features_wrapper .amenitieslistclass .row .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .features_wrapper .amenitieslistclass .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .features_wrapper .amenitieslistclass .listing_detail {
        margin-bottom: 15px;
    }
}

/* ===========================================
   Gallery Thumbnail Strip Styles
   =========================================== */

.gallery-thumb-strip {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    z-index: 1050; /* Above modal background, below navigation */
}

.thumb-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.thumb-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.thumb-nav-btn:active {
    transform: scale(0.95);
}

.thumb-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Disabled state styling - rarely used since we prefer infinite scrolling */
.thumb-nav-btn:disabled,
.thumb-nav-btn:disabled:hover,
.thumb-nav-btn:disabled:active,
.thumb-nav-btn:disabled:focus,
.thumb-nav-btn.disabled-state {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.5);
    transform: none;
    outline: none;
    box-shadow: none;
    opacity: 0.4;
    cursor: not-allowed;
}

.thumb-nav-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

.thumb-strip-container {
    flex: 1;
    overflow: hidden;
    margin: 0 8px;
    position: relative;
}

.thumb-strip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}

.thumb-strip-scroll::-webkit-scrollbar {
    display: none;
}

.thumb-strip-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Ensure square container */
}

.thumb-strip-item:hover {
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumb-strip-item.active {
    border-color: #2077ba;
    box-shadow: 0 0 0 2px rgba(32, 119, 186, 0.8), 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

.thumb-strip-item:focus {
    border-color: rgba(32, 119, 186, 0.8);
    box-shadow: 0 0 0 2px rgba(32, 119, 186, 0.6), 0 4px 16px rgba(0, 0, 0, 0.2);
    outline: none;
}

.thumb-strip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s ease;
    aspect-ratio: 1 / 1; /* Ensure square aspect ratio */
}

.thumb-strip-item:hover .thumb-strip-image {
    transform: scale(1.1);
}

.thumb-strip-item.active .thumb-strip-image {
    transform: scale(1.15);
}

/* ===========================================
   Responsive Breakpoints
   =========================================== */

/* Desktop (≥992px): 70-80px strip height, 10-14 thumbs visible */
@media (min-width: 992px) {
    .gallery-thumb-strip {
        padding: 10px 0;
    }

    .thumb-nav-btn {
        width: 32px;
        height: 32px;
        display: flex !important; /* Ensure buttons are visible on desktop */
    }

    .thumb-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .thumb-strip-item {
        width: 70px;
        height: 70px;
        aspect-ratio: 1 / 1;
    }

    .thumb-strip-scroll {
        gap: 8px;
        padding: 0 8px;
    }

    .thumb-strip-container {
        margin: 0 12px;
    }
}

/* Tablet (768-991px): 80-96px strip height, 6-8 thumbs visible */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-thumb-strip {
        padding: 14px 0;
    }

    .thumb-nav-btn {
        width: 34px;
        height: 34px;
    }

    .thumb-nav-btn svg {
        width: 17px;
        height: 17px;
    }

    .thumb-strip-item {
        width: 90px;
        height: 90px;
        aspect-ratio: 1 / 1;
    }

    .thumb-strip-scroll {
        gap: 10px;
        padding: 0 6px;
    }

    .thumb-strip-container {
        margin: 0 10px;
    }
}

/* Mobile (<768px): 68-80px strip height, 5-6 thumbs visible */
@media (max-width: 767px) {
    .gallery-thumb-strip {
        padding: 8px 0;
    }

    .thumb-nav-btn {
        width: 28px;
        height: 28px;
    }

    .thumb-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .thumb-strip-item {
        width: 60px;
        height: 60px;
        min-width: 60px;
        aspect-ratio: 1 / 1;
    }

    .thumb-strip-scroll {
        gap: 4px;
        padding: 0 4px;
    }

    .thumb-strip-container {
        margin: 0 6px;
    }

    /* Hide navigation buttons on very small screens */
    .thumb-nav-btn {
        display: none;
    }
}

/* Extra small mobile (<480px) */
@media (max-width: 480px) {
    .thumb-strip-item {
        width: 60px;
        height: 60px;
        min-width: 60px;
        aspect-ratio: 1 / 1;
    }

    .thumb-strip-scroll {
        gap: 4px;
    }

    .gallery-thumb-strip {
        padding: 8px 0;
    }
}

/* ===========================================
   Animation and Performance
   =========================================== */

.thumb-strip-item {
    will-change: transform, box-shadow, border-color;
}

.thumb-strip-scroll {
    will-change: scroll-position;
}

.thumb-strip-scroll {
    scroll-snap-type: x mandatory;
}

.thumb-strip-item {
    scroll-snap-align: center;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .thumb-strip-item {
        padding-bottom: 100%; /* Create square aspect ratio */
        height: auto;
    }

    .thumb-strip-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ===========================================
   Fallback for browsers without backdrop-filter
   =========================================== */

@supports not (backdrop-filter: blur(8px)) {
    .gallery-thumb-strip {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* ===========================================
   High contrast mode support
   =========================================== */

@media (prefers-contrast: high) {
    .gallery-thumb-strip {
        background-color: rgba(255, 255, 255, 0.95);
        border-top: 2px solid black;
        border-bottom: 2px solid black;
    }

    .thumb-nav-btn {
        background-color: black;
        border: 2px solid black;
        color: white;
    }

    .thumb-nav-btn:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

    .thumb-strip-item.active {
        border-color: #2077ba;
        box-shadow: 0 0 0 3px #2077ba, 0 4px 16px rgba(0, 0, 0, 0.6);
    }
}

/* ===========================================
   Accessibility Enhancements
   =========================================== */

/* Skip links for keyboard navigation */
#skip-to-gallery {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

#skip-to-gallery:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Screen reader announcements */
#sr-announcer {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Focus indicators for better keyboard navigation */
.thumb-strip-item:focus-visible,
.thumb-nav-btn:focus-visible {
    outline: 2px solid #2077ba;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .thumb-strip-scroll,
    .thumb-strip-item,
    .thumb-nav-btn {
        transition: none;
    }

    .thumb-strip-scroll {
        scroll-behavior: auto;
    }
} 