@font-face {
  font-family: Plovdiv;
  src: url('PlovdivDisplay-Bold.otf');
}

body {
  margin: 0;
  background-image: -webkit-image-set(url('images/header_background.jpg') 1x,
      url('images/header_background@2x.jpg') 2x);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Plovdiv;
}

#logo {
  justify-content: center;
  margin: 20px;
}

.centered {
  /* display: flex; */
  justify-content: center;
}

h1 {
  font-family: Plovdiv;
  font-size: 48;
  -webkit-text-fill-color: #F48FB1;
  -webkit-text-stroke-color: #C2185B;
  -webkit-text-stroke-width: 1px;
  text-shadow: 2px 2px 2px #fff, -2px -2px 5px #fff, 2px -2px 5px #fff, -2px 2px 5px #fff, 2px 2px 5px #fff;
}

h2 {
  font-family: Plovdiv;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke-color: #C2185B20;
  -webkit-text-stroke-width: 1px;
  text-shadow: 1px 1px 2px #C2185B, -2px -2px 5px #fff8, 2px -2px 5px #fff8, -2px 2px 5px #fff8, 2px 2px 5px #fff8;
}

a {
  font-family: Plovdiv;
  font-size: 24;
  text-decoration: none;
  -webkit-text-fill-color: #F48FB1;
  -webkit-text-stroke-color: #C2185B;
  -webkit-text-stroke-width: 0.3px;
  text-shadow: 1px 1px 2px #C2185B, -2px -2px 5px #fff, 2px -2px 5px #fff, -2px 2px 5px #fff, 2px 2px 5px #fff;
}

/* Корица на галерията */
.gallery-cover {
  position: relative;
  max-width: 600px;
  cursor: pointer;
  border-radius: 12px;
  margin: 0 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-cover:hover img {
  transform: scale(1.05);
}

.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(#F48FB1, #C2185B);
  color: white;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-cover:hover .cover-overlay {
  opacity: 1;
}

/* Модален прозорец */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  cursor: pointer;
  touch-action: pan-y;
  /* позволява вертикален scroll, но не блокира нашия horizontal swipe */
}

/* Навигационни бутони */
.nav-btn {
  background: linear-gradient(#F48FB1, #C2185B);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 15px 25px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn:disabled:hover {
  background: linear-gradient(#F48FB1, #C2185B);
  transform: none;
}

.nav-btn:hover:not(:disabled) {
  background: linear-gradient(#F48FB1, #C2185B);
  transform: scale(1.1);
}

/* Footer с бутони и брояч */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 24px;
  width: 100%;
  flex-shrink: 0;
}

/* Брояч на снимките */
.counter {
  color: white;
  font-size: 1.2rem;
  letter-spacing: 2px;
  min-width: 80px;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
}