/* GENERAL */
/* werkt dit? */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  /* Set background image from assets folder */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('../assets/achtergrond.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  /* Add an RGBA overlay for transparency */
  box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
  }
p {
  color: grey;
  }

/* TRANSITION */

h2{
  margin-top: 1rem; /* Space above the header */
  margin-bottom: 1rem; /* Space below the header */
}

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}
  
a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}


/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;

}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}


.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3 ease-in-out;
}

/* Specific style for the gallery page */
.gallery-page .hamburger-icon span {
  background-color: black;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}


/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}


/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 21rem;
  height: 70vh;

}



.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 5;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.75rem;
  color: white;
}

.section__text__p1_gallery{
  text-align: center;
  font-size:1.2rem;
  margin-top: 3rem; /* Adjust vertical positioning */
  color: black;
}


.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 80vh;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  margin-left: 6rem; /* Add margin to move it to the right */
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}


.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}


/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  margin: 2rem auto;
  padding: 0.5rem 1.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-info-container a {
  color: white;
}

.contact-info-container a:hover {
  color: #d4d4d4;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}



/* ICONS */

.icon {
  cursor: pointer;
  height: 6rem;
}
.icon:hover {
  filter: grayscale(0);
  cursor: pointer;
  transform: scale(1.1);
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}


/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  margin: 2rem auto;
  padding: 0.5rem 1.5rem;
}


/* GALLERY */
.gallery-page {
  background-image: none;
  background-color: white;
  color: black;
}

.gallery-page a {
  color: black; /* Sets the color of all links to black */
  text-decoration: none;
}

.gallery-page a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: rgb(181, 181, 181);
}


.gallery {
  column-count: 3;            /* Masonry-style responsive columns */
  column-gap: 1.75rem;
  max-width: 1200px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  width: auto;
}

.gallery img {
  transition: transform 0.5s ease;
}

.image-text-group {
  display: block;             /* Each artwork is a self-contained card */
  break-inside: avoid;
  margin-bottom: 1.75rem;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-text-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
}

.image-text-group > a,
.aspect-ratio-box {
  display: block;
  width: 100%;
  overflow: hidden;
}

.image-text-group img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0;
}

/* Reset the old fixed-pixel aspect sizing — images now fill the card width */
.aspect-ratio-box img {
  height: auto;
  width: 100%;
}

.image-row,
.image-row1 {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* The flex children are the <a> anchors, so they must share the row equally */
.image-row > a,
.image-row1 > a {
  flex: 1 1 0;
  min-width: 0;
  display: block;
}

.image-row .aspect-ratio-box,
.image-row1 .aspect-ratio-box {
  width: 100%;
}

.gallery .image-text-group img:hover {
  transform: scale(1.05);
}

.text-container {
  padding: 1.1rem 1.35rem 1.4rem;
}

.text-container h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}

.text-container p {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.15rem 0;
}

.text-container p strong {
  color: #1a1a1a;
}

@media screen and (max-width: 1000px) {
  .gallery { column-count: 2; }
}

@media screen and (max-width: 640px) {
  .gallery {
    column-count: 1;
    max-width: 480px;
  }
}



/* Sort control */
.sort-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.sort-control label {
  font-weight: 500;
}

.sort-control select {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1.5px solid #d9d9d9;
  border-radius: 30px;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sort-control select:hover,
.sort-control select:focus {
  border-color: #1a1a1a;
  outline: none;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.92); /* Black with transparency */
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 100%;
  box-sizing: border-box;
  padding: 70px 20px 40px;
}

.modal-content {
  display: block;

  /* Make sure the image fits the screen while maintaining aspect ratio */
  max-width: 90%;  /* Maximum width of the image is 90% of the viewport width */
  max-height: 78vh;

  width: auto;     /* The width will adjust based on the aspect ratio */
  height: auto;    /* The height will adjust based on the aspect ratio */
}

/* To-scale comparison diagram */
.scale-diagram {
  display: none;
  width: 100%;
  max-width: 540px;
  text-align: center;
}

.scale-diagram::before {
  content: "Werkelijke grootte vergeleken met een persoon";
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.scale-diagram svg {
  height: auto;
}

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* FOOTER SECTION */

footer {
  margin: 2rem 1rem 3rem;
  overflow: auto; /* Prevent margin collapsing */
}


footer p {
  text-align: center;
  color: inherit;
  opacity: 0.8;
  font-size: 0.9rem;
}

  

/* GALLERY HEADER */
.gallery-header {
  text-align: center;
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}

.gallery-header h1 {
  font-size: 2.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.gallery-header p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* BUTTONS GALLARY */
/* Filter Buttons Layout */
.filter-buttons {
  display: flex;
  justify-content: center; /* Centers the buttons */
  gap: 1rem; /* Space between buttons */
  margin-top: 2rem;
}

/* Filter Button Styling */
.filter-buttons button {
  padding: 10px 26px;
  background-color: #ffffff;
  border: 1.5px solid #d9d9d9;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.filter-buttons button:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.filter-buttons button:focus {
  outline: none;
  border-color: #1a1a1a;
}

.filter-buttons button.active {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column; /* Stack buttons vertically on smaller screens */
    gap: 10px; /* Less gap between buttons */
  }
}