/* ===== Custom font ===== */
@font-face {
  font-family: "Jack Armstrong";
  src: url("../fonts/Jack Armstrong BB.woff2") format("woff2");
  font-display: swap;
}

/* ==== Color palette ==== */
:root {  
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-soft: #384247;
  --color-accent: #286480;
  --color-line: #b0bec5;
  --color-hover-bg: #eceff1;
  --font-display: "Jack Armstrong", Georgia, serif;
}
html {
  scroll-behavior: smooth;
}

/* ==== Foundations ==== */
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ==== Navigation bar ==== */
.site-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 45px;
    font-style: italic;
    text-decoration: none;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-soft);
    font-size: 22px;
    font-family: var(--font-display);
}

/* ==== Hero intro ==== */
.hero {
    padding: 40px 0 60px;
    border-top: 2px solid var(--color-accent);
}

.hero-eyebrow {
    font-style: italic;
    color: var(--color-accent);
    font-size: 16px;
    margin: 0 0 10px;
}

.hero-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 18px;
    color: var(--color-text-soft);
    
}

.hero-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin: 0;
    max-width: 600px;
}

/* ==== Gallery grid ==== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0 60px;
}

.art-card {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    overflow: hidden;
}

.art-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.art-title {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 16px;
}

/* ==== Hover effects ==== */
.art-card:hover img {
    transform: scale(1.04);
}

/* ==== Lightbox ==== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 30, 40, 0.92);
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}
.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #f4ede0;
    cursor: pointer;
}

/* ===== Lightbox caption ===== */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 85%;
  max-height: 90%;
}

.lightbox-content .lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--color-bg);
}

.lightbox-title {
  font-size: 20px;
  font-style: italic;
  margin: 0 0 6px;
}

.lightbox-desc {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
  color: var(--color-line);
}

/* ===== About & Contact ===== */
.about, .contact {
  padding: 40px 0;
  border-top: 2px solid var(--color-accent);
}

/* ===== Section headings ===== */
.section-heading {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin: 0 0 18px;
}

.about-text {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0 0 16px;
}

.contact-text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0 0 16px;
}

.contact-email {
  font-size: 24px;
  font-style: italic;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 18px;
}

/* ===== Page container ===== */
.page {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== About photo layout ===== */
.about-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* HANDLING PHONE SCREEN REZ */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 38px;
  }

  .site-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Gallery dropdown ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 150px;
  z-index: 50;
}

/* Show on hover — only on devices with a real pointer (mouse) */
@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Show when toggled open (used on touch) */
.dropdown.open .dropdown-menu {
  display: block;
} 

.dropdown-menu a {
  display: block;
  padding: 8px 18px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--color-hover-bg);
  color: var(--color-text);
}

/* ===== Footer ===== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  margin-top: 60px;
  border-top: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-text-soft);
}

.footer-credit {
  grid-column: 2;
  text-align: center;
}