/* Home gallery slider — full page visible (no crop) */
.gallery-section {
    background: #f3f3f3;
    padding: 36px 0 44px;
}

.gallery-section h2 {
    text-align: center;
    margin: 0 0 8px;
    color: #222;
    font-family: Copperplate, Papyrus, fantasy;
    letter-spacing: 1px;
}

.gallery-section .gallery-note {
    text-align: center;
    color: #666;
    margin-bottom: 22px;
}

.gallery-slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #1d1d1d;
    user-select: none;
    touch-action: pan-y;
    cursor: grab;
}

.gallery-slider.is-holding {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    transition: transform 0.55s ease-in-out;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    /* Portrait-friendly frame for A4 documents */
    aspect-ratio: 3 / 4;
    max-height: 75vh;
    min-height: 420px;
    background: #111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show entire image, no cropping */
    object-position: center;
    display: block;
    pointer-events: none;
    background: #111;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gallery-btn:hover {
    background: #fff;
}

.gallery-btn.prev {
    left: 12px;
}

.gallery-btn.next {
    right: 12px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.gallery-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #b6b6b6;
    padding: 0;
    cursor: pointer;
}

.gallery-dots button.active {
    background: #d34747;
    transform: scale(1.15);
}

.gallery-hold-hint {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .gallery-slider {
        max-width: 100%;
    }

    .gallery-slide {
        aspect-ratio: 3 / 4;
        max-height: 70vh;
        min-height: 320px;
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
