@font-face {
    font-family: 'Cerova';
  src: url('fonts/Simply Charming.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
    cursor: url('kepina_parasta2.png') 0 0, auto;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
    margin: 0;
    font-family: 'Cerova', Arial, sans-serif;
    letter-spacing: 8px;
}

.foto-darbi {
width: 100%;
    height: 100vh;
    background-color: #7688c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.darbi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
    padding: 50px;
    justify-content: center;
    width: 80%;
    max-width: 1200px;
}


.darbi a:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .darbi {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .darbi {
        grid-template-columns: 1fr;
    }
}

.photo-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: url(kepina_click2.png) 0 0, auto;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(161, 122, 188, 0.6);
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.caption {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.photo-item:hover .overlay {
    opacity: 1;
}

.cits {
    width: 100%;
    height: 100vh;
    background-color: #cb97d7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cits2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
    padding: 50px;
    justify-content: center;
    width: 80%;
    max-width: 1200px;
}

.gif-galerija {
    padding-top: 0px;
    margin-top: 0;
}

.gif-header {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-align: left;
    margin-top: 0;
    margin-bottom: 30px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
}

a:hover{
    cursor: url("kepina_click2.png") 0 0, auto;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px; /* очень округлые края */
    background: linear-gradient(45deg, #c39ced, #fbbb6c); /* градиент от фиолетового к синему */
    color: white;
    font-size: 16px;
    transition: background 0.3s ease;
    cursor: url('kepina_click2.png') 0 0, auto;
  }
  
  button:hover {
    background: linear-gradient(45deg, #324669, #a572dc); /* градиент меняется при наведении */
  }
  