.team-detail-player-page__photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  max-width: 1900px;
}

.team-detail-player__photos-header {
  padding: 0 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-detail-player__photos-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-black-soft);
}

.team-detail-player__photos-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-black-soft);
  text-decoration: none;
  transition: color 0.3s ease;

  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.team-detail-player__photos-link:hover {
  color: var(--color-primary-hover);
}

.team-detail-player__photos-link-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 7px;
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  transition: all 0.3s ease;
}

.team-detail-player__photos-link:hover .team-detail-player__photos-link-icon-wrapper {
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.team-detail-player__photos-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-detail-player__photos-container.active {
  cursor: grabbing;
  user-select: none;
}

.team-detail-player__photos-container::-webkit-scrollbar {
  display: none;
}

.team-detail-player__photos-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  height: 360px;
  min-width: calc(100% / 2 - 20px);
  width: 100%;
  transition: transform 0.3s ease;
}

.team-detail-player__photos-card:hover {
  transform: scale(1.01);
}

.team-detail-player__photos-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-detail-player__photos-card:hover .team-detail-player__photos-image {
  transform: scale(1.05);
}

.team-detail-player__photos-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 1));
  color: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-detail-player__photos-category {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
  padding: 5px 12px;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 100px;
  max-width: fit-content;
}

.team-detail-player__photos-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-detail-player__photos-date {
  font-size: var(--font-size-base);
  color: var(--color-secondary);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
}

.team-detail-player__photos-card-title {
  font-size: var(--font-size-xl);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

.team-detail-player__photos-link-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .team-detail-player__photos-container {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
.team-detail-player__photos-container {
  gap: 10px;
}

.team-detail-player__photos-card {
  min-width: 300px;
}

.team-detail-player__photos-link-desktop {
  display: none;
}

.team-detail-player__photos-link-mobile{
  display: flex;
  align-self: center;
}

.team-detail-player__photos-header {
  padding: 0;
  justify-content: center;
}

.team-detail-player__photos-card-title {
  font-size: 18px;
}
}
