/* =========================
   Color Variables & Themes
========================= */

/* Light Mode (default) */
:root {
  /* Title & Section */
  --title-text-align: center;
  --title-font-size: 46px;
  --title-margin-bottom: 1.5em;

  /* Gallery Section */
  --gallery-gap: 15px;
  --gallery-justify: center;

  /* Art Box */
  --art-box-border-radius: 12px;
  --art-box-border: #ffffff64; /* White with transparency */

  /* Art Overlay */
  --art-overlay-bg: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.732)
  );
  --art-overlay-hover-bg: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.163),
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.732)
  );

  /* Buttons & Captions */
  --art-btn-color: #ffffff;
  --art-cap-color: #ffffff;
}

/* Dark Mode Overrides */
body.dark-mode {
  --art-box-border: #00000064; /* Black with transparency */
  --art-overlay-bg: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.9)
  );
  --art-overlay-hover-bg: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.163),
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.9)
  );
  --art-btn-color: #f0f0f0;
  --art-cap-color: #f0f0f0;
}

.title {
    text-align: var(--title-text-align);
    font-size: var(--title-font-size);
    margin-bottom: var(--title-margin-bottom);
  }  

#gallery-section {
  display: flex;
  gap: var(--gallery-gap);
  flex-wrap: wrap;
  justify-content: var(--gallery-justify);
}

.art-box {
  width: 10%;
  overflow: hidden;
  border-radius: var(--art-box-border-radius);
  border: 1px solid var(--art-box-border);
  cursor: pointer;
  position: relative;
}

.art-box .art-overlay {
  position: absolute;
  inset: 0;
  background: var(--art-overlay-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  transition: all ease-in-out 0.4s;
}

.art-box .art-overlay .button-group {
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  gap: 10px;
}

.art-box .art-overlay .button-group .card-btn {
  color: var(--art-btn-color);
  background-color: transparent;
  border: none;
  font-size: larger;
  cursor: pointer;
  opacity: 0;
  transition: all ease-in-out 0.4s;
}

.art-box .art-overlay:hover {
  background: var(--art-overlay-hover-bg);
}

.art-box .art-overlay:hover .card-btn {
  opacity: 1;
}

.art-box .art-cap {
  color: var(--art-cap-color);
  text-align: center;
  padding: 10px 5px;
  font-size: large;
}

.grid {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* Large Screens Styles*/
@media (min-width: 768px) {
  .art-box {
    width: 20%;
  }
}

/* Larger Screens Styles*/
@media (min-width: 1300px) {
  .art-box {
    width: 10%;
  }
}

/* Tablet Styles */
@media (max-width: 768px) {
  .art-box {
    width: 40%;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .art-box {
    width: 70%;
  }
}

/* Very Small Mobile */
@media (max-width: 360px) {
  .art-box {
    width: 80%;
  }
}

/* #gallery-section {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

#gallery-section .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}

@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }

    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

#gallery-section .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(550px);
}

#gallery-section .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gallery-section .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

#gallery-section .content h1 {
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}

#gallery-section .content h1::after {
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

#gallery-section .content .author {
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}

#gallery-section .content h2 {
    font-size: 3em;
}

#gallery-section .content .model {
    background-image: url(images/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    #gallery-section .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    #gallery-section .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }

    #gallery-section .content h1 {
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }

    #gallery-section .content .author {
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 767px) {
    #gallery-section .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }

    #gallery-section .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
    }

    #gallery-section .content h1 {
        font-size: 5em;
    }
} */
