/* ===== G.D.K. STATIC GALLERY ===== */
.gdk-gallery { margin: 0 0 40px; }

.gdk-gallery-layout {
    display: grid;
    grid-template-columns: 6fr 7fr;
    gap: 14px;
    align-items: start;
}

/* big featured image — its height drives the thumbnail grid height */
.gdk-featured {
    position: relative;
    padding: 0;
    border: 1px solid #dfe4e8;
    background: #e8edf1;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 5 / 4;     /* BASIC SIZE of the big image (change here) */
}
.gdk-featured img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; display: block;   /* whole image always visible */
    background: #fff;
}
.gdk-zoom-hint {
    position: absolute; right: 12px; bottom: 12px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: #c49345; color: #fff; font-size: 17px;
}

/* thumbnails (--cols / --rows are set automatically by gallery.js) */
.gdk-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-content: start;   /* tiny thumbs stay at the top, same size always */
    min-height: 0;
}
.gdk-thumb {
    aspect-ratio: 3 / 2;    /* every tiny image is the same size */
    padding: 0;
    min-width: 0; min-height: 0;
    border: 2px solid transparent;
    background: #e8edf1;
    cursor: zoom-in;
    overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.gdk-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .4s ease;
}
.gdk-thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(196,147,69,.6);
    box-shadow: 0 10px 25px rgba(7,26,51,.15);
}
.gdk-thumb:hover img { transform: scale(1.07); }
.gdk-thumb.active { border-color: #c49345; }
.gdk-thumb.is-featured { display: none; }   /* first image is the big one */

/* ===== LIGHTBOX ===== */
.gdk-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    background: rgba(4,14,28,.94);
}
.gdk-lightbox.open { display: flex; }
.gdk-lightbox img {
    max-width: 90vw; max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: gdkZoom .25s ease;
}
@keyframes gdkZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

.gdk-lb-btn {
    position: absolute;
    background: rgba(255,255,255,.1);
    color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; font-size: 24px;
    transition: background .2s;
}
.gdk-lb-btn:hover { background: #c49345; }
.gdk-lb-close { top: 18px; right: 18px; }
.gdk-lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.gdk-lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.gdk-lb-count {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.75); font-size: 13px; font-weight: 700; letter-spacing: .1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .gdk-gallery-layout { grid-template-columns: 1fr; }
    .gdk-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .gdk-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gdk-lb-prev { left: 6px; } .gdk-lb-next { right: 6px; }
}