/* ===========================
   1) Basic Reset & Custom Fonts
   =========================== */
/* From both snippets, consolidated here: */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Steinerlight";
  src: url("../Font/Steinerlight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bahnschrift Light";
  src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: "Bahnschrift";
  src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ===========================
   2) Global Styles
   =========================== */
/* Merged from "home" snippet and "portfolio" snippet. 
   Note that we use overflow: hidden (as in your home snippet).
   Also set --dynamic-bg: none; or change if you prefer an actual image. */
body {
  font-family: "Bahnschrift Light";
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden;
  overflow-y: auto;
  --dynamic-bg: url('../Mintak/háttér.jpg'); /* or keep your original: url('../Mintak/háttér.jpg') */
}

/* If you want the background blur overlay from the portfolio snippet, 
   here it is, but note that now we have `--dynamic-bg: none;` */
   body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: cover;        /* or 100%, but 'cover' mimics bio.css */
    background-position: center;
    background-repeat: no-repeat;  /* also from bio.css */
    filter: blur(15px);            /* stronger blur, matching bio's 15px */
    z-index: -1;
  }

/* ===========================
   3) Header (from home snippet)
   =========================== */
/* Header (fixed at top, includes blur effect) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Adds blur to the content underneath */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

/* Header container grid structure */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* Four columns: logo, nav menu, language switcher, social links */
  align-items: center;
  height: 80px;
  padding: 0 20px;
  background-color: transparent;
  position: relative;
}

/* Position the .logo off-grid */
.logo {
  position: absolute;
  top: 0; 
  left: 20px;
}

.logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: 0px;
  z-index: 1000;
  transition: all 0.3s ease; /* Smooth transition */
}

/* Smaller logo size on scroll */
.logo.shrink img {
  width: 80px;
  height: 80px;
  top: 0; /* Aligns with the header height */
}

/* Navigation Menu */
.nav-menu {
  grid-column: 2; /* Second column for the nav menu */
  justify-self: center; /* Center it horizontally within its column */
  display: flex;
  list-style: none;
  margin-left: 50px; /* Push slightly to the right if needed */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin: 0 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #000;
  font-family: "Steinerlight";
  font-size: 24px;
  font-weight: bold;
  transition: font-size 0.3s ease, color 0.3s ease;
  letter-spacing: 3px;
}

.nav-menu ul li a.active {
  font-size: 24px;
  text-decoration: underline;
  color: #000;
}

.nav-menu ul li a:hover {
  font-size: 30px;
}

/* Language Switcher */
.language-switcher {
  grid-column: 3; /* Third column for the language switcher */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: flex-end;
  margin-right: 15px;
}

.language-switcher .lang-option {
  text-decoration: none;
  font-size: 18px;
  font-family: "Steinerlight";
  font-weight: bold;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher .lang-option:hover {
  background-color: #f5f5f5;
  color: #333;
}

.language-switcher .lang-option.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links {
  grid-column: 4; /* Fourth column for social links */
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: flex-end;
}

.social-links .social-dot {
  font-size: 20px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-links .social-dot:hover {
  transform: scale(1.2);
}

/* ===========================
   4) Portfolio Navigation (Years, Series)
   =========================== */
.portfolio-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 1600px;
  padding: 10px 0;
  margin-top: 200px; /* Adjust for fixed header height */
  background-color: rgba(240, 240, 240, 0.9);
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button {
  text-decoration: none;
  color: #444;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 12px;
  
  transition: all 0.3s ease-in-out;
}

.nav-button:hover {
  background-color: #f5f5f5;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-button.active {
  background-color: #ffcc00;
  color: #000;
  border: 1px solid #e6b800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===========================
   5) Main Content Container
   =========================== */
.content {
  margin: 20px auto;
  padding: 20px;
  margin-bottom: 100px;
  max-width: 1600px;
  background-color: white;
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.series-section {
  margin-top: 100px; /* Adjust for header + nav */
}

.content.series-section h2 {
  margin-bottom: 1rem;
  font-family: "Steinerlight"; /* or whichever font you like */
  font-size: 2rem;
  text-align: center; /* or left */
  letter-spacing: 3px;
}

.series-section p {
  margin-bottom: 1.5rem; /* spacing after paragraphs */
  line-height: 1.6;      /* make text a bit more airy */
  text-align: justify;   /* optional - justify text */
  font-size: 1rem;       /* or whatever fits your design */
}

.hidden {
  display: none;
}

/* ===========================
   6) Series List (Circular Items)
   =========================== */
.series-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 75px;
  margin: 20px 0;
}

.series-item {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.series-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-item p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  width: 100%;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-family: "Steinerlight";
  padding: 5px 0;
  letter-spacing: 3px;
  opacity: 0; /* Hide text initially */
  transition: opacity 0.3s ease;
}

.series-item:hover {
  transform: scale(1.1);
}
.series-item:hover p {
  opacity: 1;
}

.series-detail-section h2 {
  margin-bottom: 1rem;
  font-family: "Steinerlight"; /* or whichever font you like */
  font-size: 2rem;
  text-align: center; /* or left */
  letter-spacing: 3px;
}

.series-detail-section p {
  margin-bottom: 1.5rem; /* spacing after paragraphs */
  line-height: 1.6;      /* make text a bit more airy */
  text-align: justify;   /* optional - justify text */
  font-size: 1rem;       /* or whatever fits your design */
}

/* ===========================
   7) Detail Gallery (Mosaic/Grid)
   =========================== */
   .detail-gallery {
    /* Instead of display: grid, use columns for a masonry-like layout */
    column-count: 3;       /* 3 columns */
    column-gap: 30px;      /* space between columns */
    margin: 20px 0;
  }
  
  .detail-gallery img {
    /* Ensures each image respects the column flow */
    display: block;
    width: 100%; 
    margin-bottom: 30px;    /* vertical spacing between images */
  
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
  }

/*.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
} */

.detail-gallery img:hover {
  transform: scale(1.05);
}

/* ===========================
   8) Modal Styles
   =========================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 1.0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

/* Main preview image inside modal */
#main-preview-image {
  max-width: 90%;
  max-height: 70%;
  object-fit: contain;
}

.artwork-info {
  margin-top: 20px;
  text-align: center;       /* or left, your choice */
  font-family: "Bahnschrift";
  /* any other styling */
}
.artwork-info h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Navigation arrows for modal */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem; /* Keep the arrow size the same */
  cursor: pointer;
  color: #000;
  z-index: 1001;
  width: 150px; /* Increase the clickable width */
  height: 350px; /* Increase the clickable height */
  display: flex; /* Center the arrow inside the button */
  align-items: center; /* Vertically center the arrow */
  justify-content: center; /* Horizontally center the arrow */
}

.nav-arrow.left {
  left: 150px;
}
.nav-arrow.right {
  right: 150px;
}

.close-modal {
  position: absolute;
  top: 50px;
  right: 75px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
}

.exhibition-block p {
  margin-bottom: 1.5rem; /* spacing after paragraphs */
  line-height: 1.6;      /* airy text */
  text-align: justify;   /* justify alignment */
  font-size: 1rem;       /* adjust as needed */
  color: #333333;        /* optional: set a text color */
  font-family: "Bahnschrift Light", sans-serif; /* optional: consistent font */
}

/* ===========================
   9) Footer
   =========================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  text-align: center;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #555;
}

/* ===========================
   10) Responsive Design
   =========================== */
   @media (max-width: 1024px) {
    body {
      overflow-y: auto; /* Ensure scrolling is allowed */
      --dynamic-bg: url('../Mintak/háttér.jpg'); /* Background for smaller screens */
    }
  
    header {
      height: 70px; /* Smaller header */
      backdrop-filter: blur(10px); /* Adds blur effect */
      -webkit-backdrop-filter: blur(10px); /* Safari support */
      z-index: 1001; /* Ensure header stays on top */
    }
  
    .header-container {
      padding: 10px 15px;
      height: 70px; /* Match header height */
    }
  
    .logo {
      width: 80px;
      height: 80px;
      left: 0px;
    }

    .logo img {
      width: 80px;
      height: 80px;
      left: 0px;
    }
  
    .hamburger-menu {
      display: flex;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      position: absolute;
      left: 120px; /* Adjust based on smaller logo */
      top: 25px; /* Center vertically */
      z-index: 1002;
    }
  
    .hamburger-menu span {
      width: 25px;
      height: 3px;
      background-color: #000;
      border-radius: 2px;
    }
  
    .nav-menu ul {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 70px; /* Below header */
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0.95);
      z-index: 1000;
      padding: 20px 0;
      align-items: center;
      gap: 15px;
    }
  
    .nav-menu ul.show {
      display: flex;
    }
  
    .nav-menu ul li a {
      font-size: 20px;
    }
  
    .portfolio-nav {
      flex-direction: column;
      align-items: center;
      padding: 10px;
      gap: 10px;
      margin-top: 100px;
      max-width: 300px;
    }
  
    .series-list {
      gap: 50px; /* Reduce spacing between items */
    }
  
    .series-item {
      width: 200px;
      height: 200px;
    }
  
    .content {
      padding: 15px;
      margin: 10px auto;
    }
  
    .detail-gallery {
      column-count: 2; /* Reduce columns for smaller screens */
      column-gap: 20px;
    }
  
    footer {
      font-size: 12px; /* Adjust text size */
    }
    .footer-container{
      font-size: 10px;
    }
  }
  
  @media (max-width: 768px) {
    header {
      height: 60px; /* Further reduced header */
    }
  
    .logo {
      width: 80px;
      height: 80px;
      left: 0px;
    }

    .logo img {
      width: 80px;
      height: 80px;
      left: 0px;
    }
  
    .hamburger-menu {
      left: 100px; /* Adjust for smaller logo */
      top: 30px;
    }
  
    .nav-menu ul li a {
      font-size: 18px;
    }

    .portfolio-nav {
      flex-direction: column;
      align-items: center;
      padding: 10px;
      gap: 10px;
      margin-top: 100px;
      max-width: 250px;
    }
  
    .series-item {
      width: 150px;
      height: 150px;
    }
  
    .content {
      padding: 10px;
      margin: 5px auto;
    }
  
    .detail-gallery {
      column-count: 1; /* Single column for smallest screens */
      column-gap: 10px;
    }
  
    #main-preview-image {
      max-width: 95%;
      max-height: 60%;
    }
    .footer-container{
      font-size: 10px;
    }
  }
  
