/* RESET (optional but recommended) */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background-color: var(--background);
}

/* PAGE WRAPPER */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--background);
}

.home-page .home,
.about-page .about,
.contact-page .contact {
  font-weight: bold;
  color: var(--black);
}

.home:hover,
.about:hover,
.contact:hover,
.socials:hover {
  opacity: 0.5;
}

.prologue-page .prologue,
.botanicals-page .botanicals,
.portraits-page .portraits,
.vos-page .vos {
  color: var(--black);
}

/* TOP SECTION */

.top {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  min-height: 370px;
  /* background-color: var(--yellow); */
  /* border: var(--stroke); */

  padding-left: 60px;
  padding-right: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.top-left,
.top-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.left-text {
  display: flex;
  flex-direction: column;
  width: max-content; /* shrink to largest child */
  flex: 1;
  justify-content: space-between;
}

.small-txt-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

h1 {
  font-size: var(--d-big-heading);
  font-weight: normal;
  letter-spacing: -0.05em;
}

h2 {
  font-size: var(--d-med-heading);
  font-weight: normal;
  letter-spacing: -0.05em;
}

h3 {
  font-size: var(--d-small-heading);
  font-weight: normal;
  letter-spacing: -0.05em;
}

.small-txt {
  font-size: var(--d-small-txt);
  color: var(--darkgrey);
}

.small-heading {
  font-size: var(--d-small-heading);
  letter-spacing: -0.05em;
  /* color: var(--darkgrey); */
}

.med-txt {
  font-size: var(--d-med-txt);
}

.right-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.top-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.home-about-options {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.middle-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.heading-desc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.small-desc {
  line-height: 1.5;
  color: var(--darkgrey);
}

.date-range {
  font-size: var(--d-med-txt);
  color: var(--darkgrey);
  padding-top: 10px;
  padding-bottom: 15px;
}

.collection-tabs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--darkgrey);
}

.tab:hover {
  opacity: 0.5;
}

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

a:hover {
  /* opacity: 0.5; */
  cursor: pointer;
}

a .item:hover {
  opacity: 0.8;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.bullets {
  padding-left: 40px;
  padding-top: 10px;
}

.big-desc {
  font-size: var(--d-small-heading);
  color: var(--darkgrey);
}

.big-heading-desc {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.small-heading-desc-collection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: justify;
  /* border: var(--stroke); */
  /* padding: 20px; */
  border-radius: 0cap;
}

/* COLLAPSE*/

.collapse {
  width: 100%;
  border-top: var(--stroke);
  border-bottom: var(--stroke);
  background-color: var(--background);
  margin-bottom: 40px;
}

.collapse-header {
  width: 100%;
  height: var(--row-h);
  background-color: var(--background);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
  transition:
    background-color 0.25s ease-in-out,
    border-bottom 0.25s ease-in-out;
}

.collapse-header:hover {
  background-color: var(--lightgrey);
}

.no-subtitle-header {
  padding-bottom: 10px;
}

.collapse-header p {
  font-size: var(--d-med-txt);
  color: var(--darkgrey);
}

.collapse.open .collapse-header {
  background-color: var(--lightgrey);
}

.collapse-icon {
  font-size: var(--d-small-heading);
  font-style: normal;
  color: var(--darkgrey);
  transition: transform 0.25s ease;
}
.collapse.open .collapse-icon {
  transform: rotate(45deg);
}

.collapse-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-in-out;
}

.collapse.open .collapse-inner {
  max-height: 1000px;
}

.collapse-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  background-color: var(--background);
}

.collapse-content .cta .view-cta {
  font-size: var(--d-med-txt);
  color: var(--darkgrey);
  padding-top: 5px;
}

/* only apply padding when open */
.collapse.open .collapse-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* BOTTOM SECTION */
.bottom {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;

  padding-left: 60px;
  padding-right: 60px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2px;
}

.item {
  aspect-ratio: 1 / 1.15; /* 👈 the key */
  overflow: hidden;
  /* padding: 100px; */
  /* background-color: black; */
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove mobile tap highlight */
/* .gallery .item {
  -webkit-tap-highlight-color: transparent;
} */

.item img {
  transition: transform 0.3s ease;
}

/* .item:hover {
  opacity: 0.9;
  border: var(--selstroke);
} */

.item:hover img {
  transform: scale(1.03);
  /* opacity: 0.8; */
  /* opacity: 0.35; */
}

.item {
  cursor: pointer;
}

.divided-bottom {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  /* padding-top: 60px; */
}

.bottom-left,
.bottom-right {
  width: 50%;
  display: flex;
  flex-direction: column;
}

/* =========================
   WORK DETAIL PAGE LAYOUT
   ========================= */

body.work-page {
  height: 100vh;
  overflow: hidden;
}

.page {
  height: 100%;
}

/* Main layout */
.work-layout {
  height: 100%;
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  /* display: grid; */
  /* grid-template-columns: 1fr 320px; */
  /* gap: 60px; */
  /* justify-content: space-between; */
  box-sizing: border-box;
}

.detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
  padding: 20px;
  /* background-color: blue; */
}

/* =========================
   IMAGE AREA
   ========================= */

.image-area {
  display: flex;
  flex-direction: row;
  height: 100%;
  gap: 20px;
  padding: 20px;
  width: 900px;

  min-height: 0; /* CRITICAL */
  /* background-color: var(--lightgrey); */
}

/* Main image container */
.main-image {
  flex: 1; /* takes remaining space */
  min-height: 0; /* allows shrinking */
  display: flex;
  align-items: center;
  /* justify-content: center; */
  justify-content: center;
  background-color: var(--lightgrey);
  padding: 20px;
}

/* Image itself */
.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================
   THUMBNAILS
   ========================= */

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  /* height: 80px;  */
  /* padding-top: 20px; */
  /* width: 80px; */
  flex-shrink: 0; /* never collapse */
}

/* Thumbnail buttons */
.thumb {
  width: 80px;
  height: 80px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
}

/* Thumbnail images */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   DETAILS COLUMN SAFETY
   ========================= */

.details {
  overflow: hidden;
}

/* Details */
.details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  /* border-left: var(--stroke); */
  /* background-color: red; */
}

.details-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* max-width: 400px; */
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: var(--stroke);
}

.details-copyright-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-title {
  font-size: var(--d-small-heading);
  font-weight: normal;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta li {
  display: flex;
  justify-content: space-between;
  font-size: var(--d-small-txt);
  line-height: 1.5;
}

/* Collection button */
.collection-btn {
  width: fit-content;
  text-decoration: none;
  font-size: var(--d-small-txt);
  text-align: left;
  font-style: italic;
  color: var(--darkgrey);
}

.collection-btn:hover {
  opacity: 0.5;
}

.close-btn {
  width: fit-content;
  text-decoration: none;
  font-size: var(--d-small-txt);
  text-align: left;
  font-style: italic;
  color: var(--darkgrey);
  border: none;
  background-color: var(--background);
  cursor: pointer;
  /* display: flex;
  justify-content: left;
  font-size: var(--d-small-heading);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10; */
  /* background-color: blue; */
}

.close-btn:hover {
  opacity: 0.5;
}
