/* ==========================
   Fonts
   ========================== */

/* Archivo Regular */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Archivo Regular'), local('Archivo-Regular'),
       url('/assets/fonts/Archivo.woff2') format('woff2'), 
       url('/assets/fonts/Archivo.woff') format('woff'); 
}

/* Archivo Italic */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Archivo Italic'), local('Archivo-Italic'),
       url('/assets/fonts/Archivo-Italic.woff2') format('woff2'), 
       url('/assets/fonts/Archivo-Italic.woff') format('woff'); 
}


/* ==========================
   Reset &/* Designer credit for main homepage with full-screen slideshow */
body.main-page .designer-credit-footer {
  position: fixed;
  bottom: 15px;
  right: 15px;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  z-index: 100;
  opacity: 0.7;
}

/* Designer credit for contact page - similar to main page since it's full-height centered */
body.contact-page .designer-credit-footer {
  position: fixed;
  bottom: 15px;
  right: 15px;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  z-index: 100;
  opacity: 0.8;
}===================== */

* {
  box-sizing: border-box;
}

:root {
  --main-padding: 1rem;
  --mistyRose: #eab72a;
  --yellow: #FBF027;
  --rosyBrown: #c1ffd6;
  --pink: #d0c0ff;
}

body {
  margin: 0;
  font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Ensure Archivo font is used across all elements */
*, *::before, *::after {
  font-family: inherit;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
  padding: 0;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
  padding-bottom: 1em;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

ul {
  list-style-type: none;
}

li {
  cursor: pointer;
}

a {
  color: black;
  text-decoration: none;
  transition: 200ms;
}

a:hover {
  color: var(--pink);
}

img {
  width: 100%;
  height: auto;
}

/* ==========================
   Navigation
   ========================== */

nav#main-nav li a {
  color: #fff;
  font-size: 2.7rem;
  letter-spacing: 0.65em;
}

nav#main-nav li a:hover {
  color: var(--yellow) !important;
}

nav ul li a {
  color: var(--mistyRose);
}

nav ul li a:hover {
  color: var(--yellow);
}

nav#archive-nav ul li,
nav#archive-nav span {
  display: inline-block;

}
@media (max-width: 768px) {
  .series-nav td a,
  nav#main-nav li a {
    /*font-size: 1.2rem !important;*/
    letter-spacing: 0.05em;
  }
  .back-button {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }
}



[aria-current] {
  color: var(--mistyRose);
  text-decoration: underline;
}

/* ==========================
   Header & Footer
   ========================== */

header {
  position: fixed;
  padding: var(--main-padding);
  font-size: 2rem;
  color: white;
  transition: opacity 400ms;
  z-index: 2;
}

footer {
  padding: var(--main-padding);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ==========================
   Slideshow Background
   ========================== */

#slideshow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#slide1 {
  opacity: 1;
}

/* ==========================
   Main Content
   ========================== */

.content {
  padding: var(--main-padding);
  padding-left: 33.33%;
  transition: opacity 200ms;
}

.content section {
  padding-bottom: 2rem;
}

.content h2, .content p, .content img {
  padding-bottom: 1em;
}

@media screen and (max-width: 767px) {
  .content {
    padding: 1rem;
    padding-top: 8rem;
    padding-bottom: 0;
  }
}

/* ==========================
   Grid Layout
   ========================== */

.grid {
  transition: 50ms;
  opacity: 1;
}

.grid.are-images-unloaded {
  opacity: 0;
}

.grid__item,
.grid__col-sizer {
  width: 33%;
}

.grid__gutter-sizer {
  width: 0.5%;
}

@media (max-width: 767px) {
  .grid__item,
  .grid__col-sizer {
    width: 100%;
  }
  .grid__gutter-sizer {
    width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid__item,
  .grid__col-sizer {
    width: calc(50% - 4px);
  }
  .grid__gutter-sizer {
    width: 8px;
  }
}

.grid__item {
  margin-bottom: 0.5vw;
  float: left;
  height: auto;
  z-index: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .grid__item {
    margin-bottom: 8px;
  }
}

.grid__item img {
  display: block;
  width: 100%;
  filter: grayscale(100%);
}

.grid__item:hover img {
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.grid-item-caption {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  color: var(--mistyRose);
}

@media (max-width: 767px) {
  .grid-item-caption {
    display: block;
    font-size: 0.75rem;
  }
}

/* ==========================
   Buttons and Icons
   ========================== */

#close {
  top: 2rem;
  left: 1rem;
  width: 2rem;
  color: black;
  font-size: 2rem;
  cursor: pointer;
  z-index: 4;
}

#close:hover svg path {
  fill: #FFFF00;
}

@media (max-width: 767px) {
  #close {
    top: 1rem;
  }
}

/* ==========================
   Back Button
   ========================== */

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: transparent;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  z-index: 1000;
  transition: background 0.3s, color 0.3s;
}

.back-button:hover {
  background: gray;
  color: yellowgreen;
}
@media (max-width: 768px) {
  .back-button {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
}


/* ==========================
   Portfolio Section
   ========================== */

.series-header {
  font-size: 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
  color: var(--mistyRose);
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-left: 20%;
}

.series-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--mistyRose);
  margin: 0.5rem auto;
}

.portfolio-container {
  display: flex;
  padding: 2rem 7% 2rem 2rem; /* small left padding */
  box-sizing: border-box;
  flex-direction: column;
}

.series-nav {
  width: 200px;
  flex-shrink: 0;
  position: fixed;
  top: 2rem;
  align-self: flex-start;
  padding-top: 5rem; /* push down to avoid overlap with header */
}

.portfolio-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 25%; /* push content ~30% from total viewport if needed */
  max-width: 800px;
  align-items: center;
}



@media (max-width: 768px) {
  body.main-page {
    overflow-x: hidden;
  }
  
  .portfolio-container {
    flex-direction: column;
    padding: 1rem 0.5rem;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
  }

  .series-nav {
    width: 100%;
    position: static;
    margin-bottom: 1.5rem;
    margin-left: 0; /* Remove left margin on mobile */
    text-align: center;
  }

  .portfolio-content {
    max-width: 100%;
    margin-left: 0; /* Remove left margin on mobile */
    margin-right: 0;
    align-items: center; /* Center content */
    width: 100%;
    padding: 0;
  }
  
  .portfolio-item {
    margin-left: 0 !important; /* Force remove left margin */
    margin-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }
  
  .portfolio-item .image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
  }
  
  .portfolio-item img {
    margin: 0 auto;
    display: block;
  }
}
.portfolio-item {
  margin-bottom: 3rem;
  display: block;
  flex-direction: column;
  align-items: center;
  margin-left: 25%;
  margin-right: auto;
}

.portfolio-item .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
}
.hidden-angles a img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
}

.portfolio-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.portfolio-description {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.portfolio-item .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: black;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
}

.portfolio-item .arrow.prev {
  left: 0;
}

.portfolio-item .arrow.next {
  right: 0;
}




/* ==========================
   Portfolio Arrows
   ========================= */
   /* === Centered PhotoSwipe Arrows === */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  color: white !important;
  font-size: 2rem !important;
  padding: 0.5rem !important;
  z-index: 1000 !important;
  cursor: pointer;
}

.pswp__button--arrow--left {
  left: 10px !important;
}
.pswp__button--arrow--right {
  right: 10px !important;
}

.pswp__button--arrow--left::after {
  content: '←';
}
.pswp__button--arrow--right::after {
  content: '→';
}

.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
  display: none !important;
}
.arrow-container {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically */
  height: 100px;           /* adjust as needed */
  width: 100px;            /* adjust as needed */
}




/* ==========================
   Contact Page
   ========================== */

body.contact-page {
  background: white;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-box {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.contact-box h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-box a {
  display: block;
  color: white;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.contact-box a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .contact-box h1 {
    font-size: 1.5rem;
  }

  .contact-box a {
    font-size: 1rem;
  }
}

/* ==========================
   Site Footer
   ========================== */

.site-footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #eee;
}

.site-footer a {
  color: var(--mistyRose);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* ==========================
   Privacy Notice Banner
   ========================== */

.privacy-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  border-radius: 6px;
  z-index: 10000;
  display: none;
  border: 1px solid rgba(234, 183, 42, 0.8);
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

.privacy-banner.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

.privacy-banner a {
  color: var(--mistyRose);
  text-decoration: none;
}

.privacy-banner a:hover {
  text-decoration: underline;
}

.privacy-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-banner-text {
  font-size: 0.7rem;
  line-height: 1.3;
}

.privacy-banner-close {
  background: rgba(234, 183, 42, 0.8);
  color: black;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.65rem;
  transition: opacity 0.2s;
  align-self: flex-end;
  opacity: 0.9;
}

.privacy-banner-close:hover {
  opacity: 0.8;
}

/* Designer Credit Footer */
.designer-credit-footer {
  margin-top: 4rem;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  color: #999;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid #eee;
}

/* Designer credit for pages with full-height content (like exhibitions) */
body.exhibitions-page .designer-credit-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.8;
}

/* Designer credit for main homepage - keep fixed for slideshow background */
body.main-page .designer-credit-footer {
  position: fixed;
  bottom: 15px;
  right: 15px;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  z-index: 100;
}

/* Remove fixed positioning for other pages - use default bottom positioning */
body.about-page .designer-credit-footer,
body.trace-page .designer-credit-footer,
body.portfolio-page .designer-credit-footer {
  /* Use default styling - positioned at bottom of content */
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid #ddd;
  border-radius: 0;
}

.designer-credit-footer .designer-name {
  color: #666;
  font-weight: normal;
}

/* Designer credit name colors for different page types */
body.main-page .designer-credit-footer .designer-name,
body.exhibitions-page .designer-credit-footer .designer-name,
body.contact-page .designer-credit-footer .designer-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: normal;
}

/* Other pages use default darker color for better readability */
body.about-page .designer-credit-footer .designer-name,
body.trace-page .designer-credit-footer .designer-name,
body.portfolio-page .designer-credit-footer .designer-name {
  color: #666;
  font-weight: normal;
}

.designer-credit-box .designer-name {
  color: #666;
  font-weight: normal;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .privacy-banner {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  
  .privacy-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy-banner-close {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ==========================
   PhotoSwipe Gallery Fixes
   ========================== */

/* Maintain aspect ratio in PhotoSwipe without breaking functionality */
.pswp__img {
  object-fit: contain !important;
}

/* Prevent portfolio images from being stretched */
.portfolio-item img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Portfolio image wrapper improvements */
.portfolio-item .image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
