/* =========================
   RESET
========================= */

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

body {
  font-family: Helvetica, Arial, sans-serif;
  /*font-family: 'Cormorant Garamond', serif;*/
  background: #ffffff;
  color: #1e2d63; /* deep navy from PDF */
  font-weight: 300;
}

h1, h2 {
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

/* =========================
   HEADER
========================= */
/* =========================
   MOBILE HEADER BAR
========================= */

/* Hide mobile by default */
.mobile-header {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #ddd;
}

.mobile-nav a {
  padding: 12px 0;
  text-decoration: none;
  color: #1f3a75;
  font-size: 16px;
}

/* Show mobile layout */
@media (max-width: 900px) {

  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .mobile-title {
    font-size: 20px;
    font-weight: 500;
    margin-left: 5px;
  }

  .menu-icon {
    font-size: 24px;
    cursor: pointer;
  }

  .cart-icon {
    font-size: 20px;
  }

}

/* MOBILE FULLSCREEN MENU */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #1f3a75; /* deep gallery blue */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-nav {
    text-align: center;
}

.mobile-menu-nav a {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: white;
    text-decoration: none;
    margin: 20px 0;
    letter-spacing: 2px;
}

.mobile-menu-nav a:hover {
    opacity: 0.7;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* =========================
   DESKTOP HEADER DEFAULT
========================= */

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0px;
}

.header-left {
  display: flex;
  /*flex-direction: column;*/
}

/* =========================
   MOBILE SWITCH
========================= */

@media (max-width: 900px) {

  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

}

.site-header {
  padding: 60px 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Logo stacked */
.logo {
  line-height: 1.1;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  text-align: center;
  position: absolute;
  margin-top: -45px;
}

.logo .g {
  display: block;
  font-size: 38px;
}

.logo .name {
  display: block;
  font-size: 28px;
}

.logo .surname {
  display: block;
  font-size: 24px;
  letter-spacing: 3px;
}

/* Navigation inline next to logo */
.main-nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
  margin-top: 2px;
  gap: 60px;
  margin-left: 130px;
}

/* Right side small text */
.production {
  font-size: 16px;
  text-align: center;
  line-height: 1.2;
  width: 100px;
  position: absolute;
  right: 68px;
  margin-top: -25px;
}

/* =========================
   GALLERY
========================= */
.gallery {
  padding: 0px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 140px 100px; /* large vertical breathing space */
}

.home.gallery {
  padding: 40px 80px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px 25px;
}

.art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 99 / 100;
}

.art-frame {
  opacity: 0;
  animation: fadeIn linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.art-caption {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  color: #1e2d63;
  /*position: relative;
  bottom: 25px;*/
}

.art-title {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
}

.art-meta {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  letter-spacing: 1px;
}

.art-status {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Inner white canvas spacing */
.art-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #ffffff;
  z-index: 0;
}

/* Images inside frame */
.art-frame img {
  position: absolute;
  inset: 0px;                       /* white mat thickness */
  width: 100%;
  height: auto;
  /*max-height: calc(100% + 100px);*/
  object-fit: cover;
  z-index: 1;
  padding: 10px;                     /* thickness of wood frame */
  background: #7a5a3a;               /* brown wood tone */
  max-height: 100%;
  margin: auto;
}

.art-frame {
  position: relative;
  width: 100%;
}

.art-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.6s ease;
}

/* Stack them naturally */
.art-frame .hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Desktop hover */
.art-frame:hover .hover {
  opacity: 1;
}

.art-frame:hover .base {
  opacity: 0;
}


@media (max-width: 900px) {

  /* 1 column layout */
  .gallery {
    grid-template-columns: 1fr !important;
    padding: 40px 20px !important;
    gap: 80px !important;
  }

  /* Stop stacking */
  .art-frame {
    position: relative;
    aspect-ratio: auto;
  }

  /* Make images normal flow */
  .art-frame img {
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    padding: 10px;
    background: #7a5a3a;
  }

  /* Hide hover image completely on mobile */
  .art-frame .hover {
    display: none;
  }

  /* Make base fully visible */
  .art-frame .base {
    opacity: 1 !important;
  }

  /* Fix caption spacing */
  .art-caption {
    position: relative;
    bottom: 0;
    margin-top: 20px;
  }

}

.art-meta,
.art-status {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .art:hover .art-meta,
  .art:hover .art-status {
    opacity: 1;
  }
}

/* Mobile always visible */
@media (max-width: 900px) {
  .art-meta,
  .art-status {
    opacity: 1;
  }
}

/* =========================
   MAILING SECTION
========================= */

.mailing {
  padding: 120px 80px;
  width: 960px;
  margin: auto;
  text-align: center;
}

.mailing-section {
  display: flex;
  flex-direction: column;
  float: left;
}

.mailing-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.mailing-sub {
  font-size: 12px;
  margin-bottom: 25px;
}

.mailing-form {
  display: flex;
  gap: 12px;
  align-items: center;
  float: right;
}

/* Blue inputs */
.mailing-form input {
  background: #1e2d63;
  color: #ffffff;
  border: none;
  padding: 8px 10px;
  font-size: 16px;
  width: 250px;
}

.mailing-form input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

/* Checkbox style submit */
.submit-box {
  width: 28px;
  height: 28px;
  background: #1e2d63; /* blue */
  border: none;
  cursor: pointer;
  position: relative;
}

/* Checkmark */
.submit-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: translate(-50%, -60%) rotate(45deg);
}

@media (max-width: 900px) {

  .mailing {
    padding: 60px 20px;
    width: 100%;
  }

  .mailing-section {
    display: block;
    float: none;
    text-align: center;
  }

  .mailing-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 25px;
    float: none;
  }

  .mailing-form input {
    width: 100%;
    height: 50px;
    font-size: 16px;
    padding: 0 16px;
  }

  .submit-box {
    width: 100%;
    height: 50px;
  }

  .mailing-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .mailing-section p {
    font-size: 14px;
    line-height: 0.2;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }

}

/* =========================
   FOOTER
========================= */

footer {
  padding: 40px 80px 80px;
  font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

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

}

@media (max-width: 600px) {

  .site-header {
    flex-direction: column;
    gap: 40px;
    padding: 0px;
  }

  .header-left {
    flex-direction: column;
    gap: 20px;
  }

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

}


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

.about-container {
  padding: 80px 6vw 100px;   /* use viewport-based padding */
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* Image */
.about-image-column img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text */
.about-title {
  font-size: 20px;
  margin-bottom: 25px;
}

.about-text-column p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-image-column {
  position: relative;
  width: 100%;
}

.about-image-column img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.6s ease;
}

/* Hover image stacked */
.about-image-column .hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Desktop hover effect */
.about-image-column:hover .hover {
  opacity: 1;
}

.about-image-column:hover .base {
  opacity: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image-column {
    order: -1;
  }

  .about-container {
    padding: 40px 20px 80px;
  }

  .about-image-column:hover .hover {
    opacity: 1 !important;
  }

  .about-image-column:hover .base {
    opacity: 0 !important;
  }
}

.success-message {
  margin-top: 25px;
  padding: 14px 18px;
  background: #1e2d63;        /* your deep navy */
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.4s ease;
}
