/* public/css/custom_css_gallery.css */
/* 🎨 Gallery grid layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    gap: 12px;
    margin-top: 8px
}


.shot {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


.shot img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.shot img:hover {
    transform: scale(1.02);
}

.shot .meta {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 4px 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 🖼️ Fullscreen modal overlay (with blur background) */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    /* 🔥 Frosted-glass blur */
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When modal is visible */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Image container */
.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image itself — full view but not cropped */
.modal-content img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease;
}

/* Small zoom effect on hover */
.modal-content img:hover {
    transform: scale(1.02);
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: #fff;
}

/* Prevent scroll behind modal */
body.modal-open {
    overflow: hidden;
}


/* --- mobile anim gallary ---- */
.carousel-inner {
    width: 260px;
    max-height: 550px;
    /* upper limit, but not forced */
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    /* ✅ keeps full image visible */
    object-fit: contain;
    /* ensures no cropping */
    object-position: center;
    background: #fff;
    display: block;
    margin: 0 auto;
}


.thumb-strip {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

.thumb-strip::-webkit-scrollbar {
    height: 6px;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 10px;
}

.thumb-wrapper img {
    height: 120px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s ease, transform 0.2s ease;
    image-rendering: auto;
}

.thumb-wrapper img:hover {
    transform: scale(1.05);
}

.thumb-wrapper img.active {
    border-color: var(--primary);
    transform: scale(1.1);
}