.photo-gallery {
  width: 100%;
  padding: 0;
  max-width: 1900px;
  margin: 0 auto;
}

.photo-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 60px;
}

.photo-gallery__title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

.photo-gallery__all-link {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--color-black-soft);
  text-decoration: none;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  transition: color 0.3s ease;
}

.photo-gallery__all-link:hover {
  color: var(--color-primary-hover);
}

.photo-gallery__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.photo-gallery__icon:hover {
  border-color: var(--color-primary-hover);
}

.photo-gallery__all-link:hover .photo-gallery__icon {
  border-color: var(--color-primary-hover);
}

.photo-gallery__arrow {
  width: 8px;
  height: 15px;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.photo-gallery__all-link:hover .photo-gallery__arrow {
  color: var(--color-primary-hover);
}

.photo-gallery__slider {
  overflow: hidden;
}

.photo-gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.photo-gallery__track::-webkit-scrollbar {
  display: none;
}

.photo-gallery__card {
  flex: 0 0 max(calc((100% - 60px) / 4), 300px);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

.photo-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.photo-gallery__card:hover .photo-gallery__image {
  transform: scale(1.05);
}

.photo-gallery__overlay {
  background-color: var(--color-white);
  flex-grow: 1;
  color: var(--color-white);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.photo-gallery__category {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  background: transparent;
  backdrop-filter: blur(19.5px);
  -webkit-backdrop-filter: blur(19.5px);
  padding: 7px 15px;
  border-radius: 130px;
  max-width: fit-content;
}

.photo-gallery__card-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.photo-gallery__date {
  font-size: var(--font-size-md);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  text-transform: lowercase;
}

.photo-gallery__card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

.photo-gallery__all-link-footer {
  display: none;
}

@media (max-width: 1700px) {
  .photo-gallery__overlay {
    padding: 15px 15px;
    min-height: 125px;
  }

  .photo-gallery__category {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    line-height: var(--line-height-tight);
    background: transparent;
    backdrop-filter: blur(19.5px);
    -webkit-backdrop-filter: blur(19.5px);
    padding: 7px 15px;
    border-radius: 130px;
    max-width: fit-content;
  }
}

@media (max-width: 1024px) {
  .photo-gallery__slider {
    margin: 0 -16px;
  }

  .photo-gallery__track {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .photo-gallery__header {
    justify-content: center;
    padding: 0;
  }

  .photo-gallery__all-link-header {
    display: none;
  }

  .photo-gallery__all-link-footer {
    margin-top: 25px;
    display: flex;
    justify-content: center;
  }

  .photo-gallery__track {
    gap: 10px;
  }

  .photo-gallery__card-title {
    font-size: 16px;
  }

  .photo-gallery__card {
    flex: 0 0 max(calc((100% - 30px) / 4), 300px);
  }

  .photo-gallery__overlay {
    min-height: 100px;
  }
}
