/* ---------------------------------------------------------
   Global Reset
--------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: #000;
    color: #dddddd;
    line-height: 1.6;
    -webkit-text-size-adjust: none;
    font-family: system-ui, sans-serif;
}


/* ---------------------------------------------------------
   Homepage Header Layout (Flex-Centered)
--------------------------------------------------------- */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* ---------------------------------------------------------
   ABW Card (Hero Identity Block)
--------------------------------------------------------- */
.abw-card {
    background-color: #000;
    color: #e3dfd9;
    font-family: "Adobe Garamond Pro", serif;
    text-align: center;
    display: inline-block;
    border-radius: 8px;

    padding: 3.5rem 4rem;
    margin-bottom: 3rem;

    box-shadow:
        0 0 35px rgba(0, 0, 0, 0.85),
        0 12px 28px rgba(0, 0, 0, 0.7),
        inset 0 0 0.5px rgba(255, 255, 255, 0.05);

    transition: transform 0.3s ease;
}

.abw-card:hover {
    transform: scale(1.05);
}


/* ---------------------------------------------------------
   ABW Card Typography (New Classes)
--------------------------------------------------------- */
/* --- Index Header Monogram Card Specific --- */
.header .abw-card h1.abw-title {
    font-family: 'Gutters Butter Regular', cursive;
    font-size: calc(2.8rem + 8vmin); /* large, hero scale */
    margin: 0;
    color: #e3dfd9; /* test color */
}


.abw-tagline {
    font-family: 'Adobe Garamond Pro', serif;
    font-variant: small-caps;
    font-size: calc(0.85rem + 2.2vmin); /* bumped up */
    margin-top: 1.2rem;
}


.abw-of {
    font-style: italic;
    font-variant: normal;   /* disables small caps */
    text-transform: none;   /* ensures lowercase */
    padding-right: 0.1em;   /* prevents f–R collision */
}

.abw-card {
  background-color: #000;
  color: #e3dfd9;
  padding: 2.5rem 3rem;
  border-radius: 8px;

  /* The haze */
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.08),   /* wide ambient glow */
    0 0 18px rgba(255, 255, 255, 0.12),   /* soft bloom */
    0 6px 18px rgba(0, 0, 0, 0.7);        /* grounding shadow */

  backdrop-filter: blur(2px);             /* slight atmospheric diffusion */
  -webkit-backdrop-filter: blur(2px);

  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.abw-card:hover {
  box-shadow:
    0 0 50px rgba(255, 255, 255, 0.12),
    0 0 22px rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.75);
  transform: scale(1.02);
}



/* ---------------------------------------------------------
   Homepage-specific spacing for first H1 after card
--------------------------------------------------------- */
.header > h1:first-of-type {
    margin-top: 1rem;
}


/* ---------------------------------------------------------
   Collection Header (Toggle + Centered Title)
--------------------------------------------------------- */
.collection-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0 1.5rem;
}

.collection-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #dddddd;
    margin: 0;
}

.collection-toggle {
    background: none;
    border: none;
    color: #dddddd;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transform: translateY(-2px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.collection-toggle:hover {
    opacity: 0.7;
}

.collection-toggle.open {
    transform: rotate(45deg) translateY(-2px);
}


/* ---------------------------------------------------------
   Gallery Grid (Hybrid Layout)
--------------------------------------------------------- */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

@media (max-width: 1024px) {
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}


/* ---------------------------------------------------------
   Thumbnail Cards
--------------------------------------------------------- */
.thumbnails a {
    text-decoration: none;
    color: #dddddd;
    text-align: center;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.thumbnails a:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.thumbnails img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.thumbnails h3 {
    margin-top: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: #dddddd;
}


/* ---------------------------------------------------------
   Lightbox (Unified with Reflections)
--------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 9999;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #dddddd;
    font-size: 2.5rem;
    cursor: pointer;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0,0,0,0.9),
                0 0 60px rgba(0,0,0,0.7);
}

.lightbox-description {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: #dddddd;
}


/* Narrator buttons */
.narrator-btn {
    padding: 0.6rem 1.2rem;
    background: #444;
    color: #dddddd;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0.25rem;
}


/* ---------------------------------------------------------
   Lightbox Fade-in Animation
--------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox.open .lightbox-content {
    animation: fadeIn 0.35s ease-out;
}


/* ---------------------------------------------------------
   Accordion Fade-in for Thumbnails
--------------------------------------------------------- */
@keyframes thumbFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-content .thumbnails a {
    opacity: 0;
    transform: translateY(8px);
}

.collection-content.open .thumbnails a {
    animation: thumbFade 0.6s ease forwards;
}

.collection-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
