﻿.photos-tab-wrap {
  margin: 0;
}
.photos-tab-wrap input[type=radio] {
  display: none;
}

.photos-tab-buttons {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  gap: 0;
}
.photos-tab-buttons li {
  flex: 1;
}
.photos-tab-buttons li:first-child label {
  border-radius: 4px 0 0 4px;
}
.photos-tab-buttons li:last-child label {
  border-radius: 0 4px 4px 0;
}
.photos-tab-buttons label {
  display: block;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  background: #eee;
  border: 1px solid #ddd;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#photos_tab_sun:checked ~ .photos-tab-buttons li:nth-child(1) label,
#photos_tab_moon:checked ~ .photos-tab-buttons li:nth-child(2) label {
  background: #ff8c00;
  color: #fff;
  border-color: #ff8c00;
}

.photos-tab-panels > section {
  display: none;
}

#photos_tab_sun:checked ~ .photos-tab-panels > section:nth-child(1),
#photos_tab_moon:checked ~ .photos-tab-panels > section:nth-child(2) {
  display: block;
}

.photos-loading-wrap {
  text-align: center;
  padding: 30px 0;
}
.photos-loading-wrap img {
  width: 30px;
  vertical-align: middle;
}
.photos-loading-wrap span {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: #888;
  vertical-align: middle;
}

.photos-more-wrap {
  text-align: center;
  margin: 25px 0 0;
  display: none;
}

.photos-more-btn {
  display: inline-block;
  background-color: #ff8c00;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 32px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.photos-more-btn:hover {
  background-color: #e07b00;
}
.photos-more-btn:active {
  transform: scale(0.95);
}
.photos-more-btn:disabled {
  background-color: #ccc;
  cursor: default;
}

@media screen and (max-width: 768px) {
  .photos-tab-buttons {
    margin: 0 0 10px;
  }
  .photos-tab-buttons label {
    padding: 8px;
    font-size: 13px;
  }
  .photos-more-btn {
    font-size: 13px;
    padding: 8px 24px;
  }
  .photos-tab-panels {
    padding: 0 15px;
  }
  .photos-more-wrap {
    margin: 20px 0 0;
  }
  .photos-loading-wrap {
    padding: 20px 0;
  }
}
