

@layer reset, base, layout, modal;

@layer reset {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
}

@layer base {
    body {
  font-family: sans-serif;
  max-width: 900px;
  margin: auto;
  padding: clamp(1rem, 2vw, 3rem);
  background: url('../images/bg_.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #f5f5f5;
  color :#742e2e;
}
body { font-family: sans-serif; max-width: 900px; margin: auto; padding: 2rem; background: url('../images/bg_1.png') no-repeat center center fixed;
  background-size: cover; }
    h1, h2 { color :#742e2e; font-size: clamp(2.4rem, 3vw, 5rem); text-align: center; margin-top: 5rem; margin-bottom: 1rem; font-weight: 500; }
  

  h1 {
    font-family: "Great Vibes";
    
    text-align: center;
    margin-bottom: 5lvh;
  }
}

@layer layout {
  .galerie {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 2rem);
    justify-content: center;
  }

  .image-container {
    flex: 1 1 clamp(200px, 20vw, 300px);
    max-width: clamp(200px, 25vw, 300px);
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      cursor: pointer;
      transition: transform 0.3s ease;

      &:hover {
        transform: scale(1.05);
      }
    }
  }
  .fade-in {
    animation: scaleIn 0.3s ease-in-out;
  }
  
  @keyframes scaleIn {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
}

@layer modal {
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 2vh;
  }

  .modal-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
  }

  .close,
  .prev,
  .next {
    position: absolute;
  
    width: clamp(2rem, 4vw, 4rem);
    height: clamp(2rem, 4vw, 4rem);
    color: white;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .close {
    
    top: 1vh;
    right: 2vw;
  }

  .prev {
    left: 2vw;
    top: 50%;
    transform: translateY(-50%);
  }

  .next {
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
  }
}



button{color :#742e2e; border: 1px solid #742e2e; border-radius: 5px; cursor: pointer;background-color: transparent;}











@layer filters {
    .filters {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 4vh;
  
      button {
        font-size: clamp(1rem, 2vw, 1.5rem);
        padding: 0.6rem 1.5rem;
        background-color: #c4ab70;
        color: #fff;
        border: none;
        border-radius: 2rem;
        cursor: pointer;
        transition: background-color 0.3s;
        button.active {
            background-color: #ff8a80;
            color: #fff;
          }
          
        .badge {
            margin-left: 0.5rem;
            background-color: #ff8a80;
            color: white;
            font-weight: bold;
            padding: 0.1rem 0.6rem;
            border-radius: 999rem;
            font-size: 0.8em;
          }
          
        &:hover {
          background-color: #ff8a80;
        }
      }
    }
  }
  