:root{
    /* font */
    --font-primary: "Fira Code", monospace;
    --font-secondary: ;


    /* color */
    /* задній фон */
    --background-color: #27282A;
    --background-color-transparent: rgba(39, 40, 42, 0.5);


    /* додатковий колір */
    --accent-color: #C778DD;
    --accent-color-transparent: rgba(199, 120, 221, 0.5);
    --accent-color-shadow: 0 1px 5px rgba(141, 79, 133, 0.2);

    /* кольори логотипу */
    --logo-color: #FFFFFF;
    --nav-color: #ACB0B7;
    --nav-active-color: #FFFFFF;


    /* колір media-sidebar */
    --media-sidebar-color: #ACB0B7;
    
}

html, body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


body{
    background-color: var(--background-color);
}


.container{
    max-width: calc(1024px + 171px * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: 171px;
    padding-right: 171px;
}

main{
    min-height: 100vh;
}

/* background-color: var(--background-color); для екранів більших 800px */
@media screen and (min-width: 800px) {
    .color-blur-effect {
    background-color: rgba(255, 255, 255, 0.03);
    }
}


@media screen and (max-width: 1023px) {
    .container{
        padding-left: 100px;
        padding-right: 100px;
    }
    
}
@media screen and (max-width: 600px) {
    .container{
        padding-left: 50px;
        padding-right: 50px;
    } 
}
@media screen and (max-width: 500px) {
    .container{
        padding-left: 30px;
        padding-right: 30px;
    } 
}
@media screen and (max-width: 400px) {
    .container{
        padding-left: 16px;
        padding-right: 16px;
    } 
}






/* Загальний стиль до появи */
.animate-from-bottom,
.animate-from-left,
.animate-from-right {
  opacity: 0;
  will-change: transform, opacity;
}

/* Поява знизу */
.animate-from-bottom {
  transform: translateY(50px);
}
.animate-from-bottom.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Поява зліва */
.animate-from-left {
  transform: translateX(-50px);
}
.animate-from-left.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Поява справа */
.animate-from-right {
  transform: translateX(50px);
}
.animate-from-right.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}




/* 
* {
  outline: 1px solid rgba(255, 0, 0, 0.3);
} */





.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Модальне вікно */
.image-modal {
  display: none; /* приховано */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

/* Фото всередині модалки */
.image-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  animation: zoomIn 0.3s ease;
}

/* Кнопка закриття */
.image-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal .close:hover {
  color: #ccc;
}

/* Анімація появи */
@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* Адаптація під телефон */
@media (max-width: 600px) {
  .gallery img {
    max-width: 100%;
  }
  .image-modal img {
    max-width: 95%;
    max-height: 75vh;
  }
}
