/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
   ========================= */
body {
  font-family: Inter, Arial, sans-serif;
  background: #f8dfd7;
  color: #421c1b;
  line-height: 1.6;
  margin: 0;
}

a {
  color: #a0522d; /* darker warm link color */
  text-decoration: none;
}

a:hover {
  color: #8b2b0e; /* slightly darker on hover */
}

nav a.active {
  font-weight: 900;
}

.page-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.page-logo img {
  width: auto;
  height: 80px;   /* control size directly */
  display: block;
}


/* =========================
   LAYOUT
   ========================= */
main {
  padding-left: 90px;
  padding-right: 90px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 80px;
  height: 100vh;
  background-image: url("./artwork/border.png");
  background-repeat: repeat-y;
  background-size: 80px auto;
  pointer-events: none;
  z-index: 9995;
}

/* LEFT SIDE */
body::before {
  top: 0;
  left: 0;
  background-position: top left;
}

/* RIGHT SIDE */
body::after {
  right: 0;
  background-position: top right;
  transform: scaleX(-1); /* flips it so it mirrors nicely */
}

/* =========================
   MOBILE BORDER FIX
   ========================= */
@media (max-width: 768px) {
  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  body::before,
  body::after {
    width: 30px;
    background-size: 30px auto;
  }
}

@media (max-width: 480px) {
  body::before,
  body::after {
    width: 15px;
    background-size: 15px auto;
  }

  main {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =========================
   GRID (FIXED SQUARE)
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px 40px;
}

.grid .item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  background: #f5e6d2; /* subtle background for empty grid items */
  z-index: 1;
}

.grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.grid .item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.grid .item .title {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(106,51,30,0.75); /* semi-transparent brown */
  color: #f8dfd7;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================
   HEADINGS
   ========================= */
h1, h2 {
  text-align: center;
  margin: 30px 0;
  font-size: 2.4rem;
  color: #421c1b;
}

/* =========================
   FOOTER
   ========================= */
footer {
  text-align: center;
  padding: 18px;
  border-top: 1px solid #c9b49d;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #421c1b;
  background: #f8dfd7;
}

/* =========================
   FULLSCREEN LIGHTBOX
   ========================= */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(106,51,30,0.95); /* dark brown overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

#lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #f8dfd7;
  font-size: 1rem;
  background: rgba(106,51,30,0.8);
  padding: 6px 12px;
  border-radius: 4px;
  max-width: 90%;
  text-align: center;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img,
#lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-out;
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   BACK LINK
   ========================= */
.back-link {
  display: inline-block;
  margin: 16px 0;
  font-weight: bold;
  color: #a0522d;
}

.back-link:hover {
  color: #8b2b0e;
}

/* =========================
   FORM ELEMENTS
   ========================= */
form label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: #421c1b;
}

form input, form textarea, form select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #c9b49d;
  background: #f5e6d2;
  color: #421c1b;
  font-size: 1rem;
  display: block;
}

form textarea {
  resize: vertical;
}

form button {
  margin-top: 24px;
  padding: 12px;
  width: 100%;
  background: #a0522d;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  color: #f8dfd7;
  cursor: pointer;
}

form button:hover {
  background: #8b2b0e;
}

/* =========================
   CONTACT PAGE MOBILE FIX
   ========================= */

.contact-container {
  max-width: 600px;
  width: 100%;
  margin: 80px auto;
  padding: 0 20px;
}

.response-container {
  text-align: center;
}

@media (max-width: 768px) {
  .contact-container {
    margin: 40px auto;
    padding: 0 15px;
  }

  form input,
  form textarea,
  form select,
  form button {
    font-size: 16px; /* prevents weird iPhone zoom */
  }
}

/* =========================
   HEADER
   ========================= */
header {
  top: 0;
  width: 100%;
  background: #f8dfd7; /* semi-transparent beige */
  backdrop-filter: blur(8px);
  padding: 14px 32px;
  border-bottom: 1px solid #c9b49d;
  position: relative;
  z-index: 9990;
}

nav a {
  font-weight: 600;
  color: #421c1b;
  margin-right: 20px;
}

nav a:hover {
  color: #8b2b0e;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
}

/* =========================
   SIMPLE CLICK DROPDOWN
   ========================= */

.dropdown {
  position: relative;
  display: inline-block;
}

/* hide checkbox */
.dropdown-toggle {
  display: none;
}

/* button label */
.dropbtn {
  font-weight: 600;
  color: #421c1b;
  cursor: pointer;
  user-select: none;
  margin-right: 20px;
}

/* dropdown hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #f8dfd7;
  border: 1px solid #c9b49d;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 9990;
}

/* show when clicked */
.dropdown-toggle:checked + .dropbtn + .dropdown-content {
  display: block;
}

/* links */
.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #421c1b;
}

.dropdown-content a:hover {
  background: #f5e6d2;
}

/* =========================
   ABOUT PAGE LAYOUT
   ========================= */

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* LEFT IMAGE */
.about-image {
  flex: 0 0 280px; /* fixed column width on desktop */
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* RIGHT TEXT */
.about-text {
  flex: 1;
}

/* =========================
   MOBILE STACK
   ========================= */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 20px 15px;
  }

  .about-image {
    width: 100%;
  }
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #c9b49d;
  background: #f5e6d2;
  border-radius: 8px;
  font-weight: 600;
  color: #421c1b;
  transition: 0.2s ease;
}

.social img {
  width: 18px;
  height: 18px;
}

.social:hover {
  background: #a0522d;
  color: #f8dfd7;
}

.social:hover img {
  filter: brightness(0) invert(1);
}

