@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');

/* ============================= */
/* GLOBAL VARIABLES + BASE RULES */
/* ============================= */
:root {
  --contact-x-offset: 10px;
  --contact-y-offset: 20px;
  --contact-closer-offset: 10px;
  --text-left-offset: 1em;
  --section-heading-offset: 1em;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'EB Garamond', Garamond, serif;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  color: black;
}

h1, h2 {
  margin-bottom: 0.2em;
}

h1 {
  font-size: 1.8em;
  margin-top: -1.5em;
  margin-bottom: 0.3em;
  text-align: center;
}

h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  text-align: center;
}

.name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.4em;
  margin-left: var(--section-heading-offset);
  text-align: left;
}

.bio {
  font-size: 1em;
  line-height: 1.5;
}


/* ============================= */
/* LAYOUT CONTAINERS + STRIPE */
/* ============================= */
.stripe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 0;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0em 1em 1.5em 1em;
  margin-top: 0.5em;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.container h1:first-of-type,
.container h2:first-of-type {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: center;
}

.container h1:not(:first-of-type),
.container h2:not(:first-of-type),
.container h3,
.container p,
.container .bio {
  margin-left: var(--text-left-offset);
  margin-right: 0;
  margin-top: 0.2em;
  box-sizing: border-box;
  text-align: left;
}


/* ============================= */
/* SIDEBAR + MAIN BODY */
/* ============================= */
.sidebar {
  width: 100%;
  margin-bottom: 1.5em;
}

.main {
  width: 100%;
}


/* ============================= */
/* PROFILE SECTION */
/* ============================= */
.profile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#bio-image {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 1.2em auto;
  margin-top: 1.5em;
  border: 0.07em solid #aaa;
  object-fit: contain;
}


/* ============================= */
/* ALT LAYOUT SECTIONS */
/* ============================= */
.alt-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  margin-bottom: 2em;
}

.alt-layout .text {
  width: 100%;
}

.alt-layout img {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border: 0.07em solid #aaa;
  display: block;
  margin: 0 auto 1em auto;
}


.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5em auto;
  width: 100%;
  max-width: none;
  padding: 0;
  background: none,
  box-sizing: border-box;
}


.gallery-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  overflow: visible; /* was 'hidden', now 'visible' */
}

.gallery-image-container {
  height: 30em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.gallery-image-container img {
  height: 100%;      /* Always fills container height */
  width: auto;       /* Keeps natural aspect ratio, wide images overflow */
  max-width: none;   /* Don't constrain width */
  max-height: none;
  display: block;
}

.gallery-button {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
}

.gallery-button.left {
  left: 1em;
}

.gallery-button.right {
  right: 1em;
}

#gallery-caption {
  margin-top: 0.5em;
  font-style: italic;
  text-align: center;
  padding: 0 1em;
  min-height: 2em; /* Ensures caption area is always present */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  background: black;
  color: white;
  text-align: center;
  padding: 1.5em 1em;
  margin: 2em 0 0 0;
  width: 100%;
  position: relative;
  z-index: 1;
}


/* ============================= */
/* CONTACT BUTTON (FLOATING) */
/* ============================= */
.floating-contact {
  position: fixed;
  bottom: var(--contact-y-offset);
  right: var(--contact-x-offset);
  background-color: black;
  color: white;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  z-index: 1000;
  text-align: center;
}

.floating-contact:hover {
  background-color: goldenrod;
  transform: scale(1.05);
}


/* ============================= */
/* CONTACT OVERLAY */
/* ============================= */
.overlay {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}


/* ============================= */
/* CONTACT FORM STYLING */
/* ============================= */
.contact-form-wrapper {
  padding: 0.3em;
  border-radius: 1.55em;
  background:
    repeating-linear-gradient(
      45deg,
      #a23e3e 0,
      #a23e3e 14px,
      #f6f0e6 14px,
      #f6f0e6 24px,
      #3e597a 24px,
      #3e597a 38px,
      #f6f0e6 38px,
      #f6f0e6 48px
    );
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 2em);
  max-width: calc(30em + (0.3em * 2));
  margin: 0 auto;
}

.contact-form-wrapper .contact-form {
  background: #f0eee4;
  padding: 1em;
  border-radius: 1.25em;
  box-shadow: none;
  width: calc(100% - (0.3em * 2));
  max-width: 30em;
  max-height: 72vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  gap: 0.8em;
  transform: scale(1, .98);
  transform-origin: center;
  opacity: 1;
  animation: none;
  box-sizing: border-box;
}

.contact-form-title {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.form-row input {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6em;
  border: 0.07em solid #aaa;
  border-radius: 0.4em;
  font-family: 'EB Garamond', Garamond, serif;
  font-size: 1em;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 5.2em !important;   /* try increasing if needed */
  min-height: 5.2em !important;
  /* max-height: none; */     /* leave this out */
  resize: vertical !important;
  box-sizing: border-box;
  font-size: 1em;             /* forces consistent em size */
  line-height: 1.2em;         /* ensures em calculations are what you expect */
}


.send-button {
  background-color: black;
  color: white;
  padding: 0.6em 1.5em;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 1em auto 0;
  width: 10em;
  text-align: center;
}

.send-button:hover {
  background-color: #911717;
  transform: scale(1.05);
}

/*VIDEO SECTION*/
.video-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2em auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.video-section iframe {
  aspect-ratio: 5/4;      /* square */
  width: 90%;            /* nearly fills the stripe */      /* optional max for ultra-small phones */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 1em;
}


/* Make static, non-gallery images slightly smaller on mobile */
.profile img,
#bio-image,
.alt-layout img {
  width: 90%;
  max-width: 320px; /* adjust this number if needed */
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.confirmation-box {
  background-color: #63a868;
  color: white;
  padding: 2em;
  font-size: 1.5em;
  text-align: center;
  border-radius: 20px;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeOut 0.5s ease 2.5s forwards;
  opacity: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

