/* Florentine Baroque Art Theme — Haukohl.art */

body {
    font-family: "Garamond", "Georgia", serif;
    background: #f4efe6; /* parchment */
    color: #3a2e25;      /* warm brown ink */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container with carved-frame feel */
.container {
    max-width: 900px;
    margin: 50px auto;
    background: #fffdf8;
    padding: 40px;
    border-radius: 12px;
    border: 8px solid #d8c29a; /* carved stone tone */
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    background-image: url('/css/fleur-bg.png'); /* optional fleur-de-lis pattern */
    background-size: 120px;
    background-repeat: repeat;
    background-position: center;
}

/* Title styled like a museum placard */
h1 {
    text-align: center;
    font-size: 2.4em;
    color: #6a4a2f; /* deep sienna */
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #e8d9c4;
}

.subtitle {
    text-align: center;
    color: #7a6a55;
    font-style: italic;
    margin-bottom: 30px;
}

/* Fieldset styled like framed catalog entries */
fieldset {
    border: 3px solid #d8c29a;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: #fffaf2;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
}

legend {
    font-size: 1.3em;
    font-weight: bold;
    color: #6a4a2f;
    padding: 0 10px;
    font-family: "Garamond", serif;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #4a3a2a;
}

/* Inputs styled like archival catalog cards */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #c8b79a;
    border-radius: 6px;
    background: #fffdf8;
    font-family: "Garamond", serif;
    font-size: 1em;
    color: #3a2e25;
}

textarea {
    resize: vertical;
}

/* Checkboxes */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

/* Buttons styled like gilded museum labels */
button {
    background: linear-gradient(#b08a57, #8c6a3f);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    font-family: "Garamond", serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover {
    background: linear-gradient(#c9a46b, #9c7a4f);
}

/* Optional fleur-de-lis icon for headings */
h1::before,
legend::before {
    content: "⚜ ";
    color: #8c6a3f;
}

/* ============================================================= */
/* Photo Gallery — thumbnail grid + full-size lightbox            */
/* Added for the index.html image galleries (Paintings, Frames,   */
/* Sculpture, Phoenix, etc.) — two photos per row by default,     */
/* collapsing to one on narrow phone screens. Thumbnails use      */
/* object-fit: contain (not crop) so full compositions stay       */
/* visible; hovering lifts/zooms the thumbnail as a visual cue,    */
/* clicking opens the original full-resolution file in a lightbox. */
/* ============================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px auto 36px;
    max-width: 900px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #d8c29a;
    background: #fffaf2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: zoom-in;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #fffaf2;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.gallery-item::after {
    content: "🔍 View Full Size";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 10px;
    font-size: 0.85em;
    text-align: center;
    color: #fffdf8;
    background: linear-gradient(to top, rgba(58,46,37,0.85), rgba(58,46,37,0));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 220px;
    }
}

/* Full-size lightbox viewer */
#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 8, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
}

#lightbox-overlay.open {
    display: flex;
}

#lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    border: 6px solid #fffdf8;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
    cursor: default;
}

#lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: #f4efe6;
    font-family: "Garamond", serif;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    pointer-events: none;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f4efe6;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
