/* Gallery (/gallery/) — p10, mainV2 shell */

.p10-gallery-page {
  --p10-lime: #B7E000;
  --p10-text: #1F1F1F;
  --p10-secondary: #6F6F6F;
  --p10-muted: #A0A0A0;
  --p10-border: #E8E8E8;
  --p10-card: #FFFFFF;
  --p10-bg: #F4F5F6;
  --p10-radius: 12px;
}

.p10-gallery-page *,
.p10-gallery-page *::before,
.p10-gallery-page *::after {
  box-sizing: border-box;
}

.p10-gallery-page.mainV2__page--inner {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.p10-gallery-page .p10-gallery-inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 991px) {
  .p10-gallery-page .p10-gallery-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 480px) {
  .p10-gallery-page .p10-gallery-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

body.v2-page .p10-gallery-page.mainV2__page--inner {
  padding-top: 4px;
}

@media (min-width: 991px) {
  body.v2-page .p10-gallery-page.mainV2__page--inner {
    padding-top: 64px;
  }
}

body.v2-page .p10-gallery-page .mainV2__page-title {
  margin: 0 0 6px !important;
  font-size: 20px;
  line-height: 1.15;
  color: var(--p10-text);
}

@media (min-width: 991px) {
  body.v2-page .p10-gallery-page .mainV2__page-title {
    font-size: 24px;
    margin-bottom: 8px !important;
  }
}

.p10-gallery-page__intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--p10-secondary);
}

.p10-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p10-gallery-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  background: var(--p10-card);
  border: 0.5px solid var(--p10-border);
  border-radius: var(--p10-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.p10-gallery-card:hover {
  border-color: #D8D8D8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p10-gallery-card__thumb {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--p10-bg);
  flex-shrink: 0;
}

.p10-gallery-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p10-gallery-card__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--p10-muted);
  font-size: 28px;
}

.p10-gallery-card__body {
  min-width: 0;
}

.p10-gallery-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--p10-text);
}

.p10-gallery-card__date {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--p10-muted);
}

.p10-gallery-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--p10-secondary);
}

.p10-gallery-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--p10-secondary);
  background: var(--p10-card);
  border: 0.5px solid var(--p10-border);
  border-radius: var(--p10-radius);
}

.p10-gallery-page .mainV2__pagination {
  margin-top: 18px;
}

@media (max-width: 560px) {
  .p10-gallery-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .p10-gallery-card__thumb {
    width: 96px;
    height: 72px;
  }

  .p10-gallery-card__title {
    font-size: 15px;
  }
}

/* ——— Album detail ——— */
.p10-gallery-show .p10-gallery-show__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--p10-muted);
}

.p10-gallery-show .p10-gallery-show__crumb a {
  color: var(--p10-secondary);
  text-decoration: none;
}

.p10-gallery-show .p10-gallery-show__crumb a:hover {
  color: var(--p10-text);
  text-decoration: underline;
}

.p10-gallery-show .p10-gallery-show__crumb-sep {
  color: var(--p10-muted);
}

.p10-gallery-show .p10-gallery-show__crumb-current {
  color: var(--p10-text);
}

body.v2-page .p10-gallery-show .mainV2__page-title.p10-gallery-show__title {
  margin: 0 0 6px !important;
  font-size: 22px;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: -0.02em;
}

@media (min-width: 991px) {
  body.v2-page .p10-gallery-show .mainV2__page-title.p10-gallery-show__title {
    font-size: 28px;
    margin-bottom: 8px !important;
  }
}

.p10-gallery-show__date {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--p10-muted);
}

.p10-gallery-show__card {
  padding: 16px;
  background: var(--p10-card);
  border: 0.5px solid var(--p10-border);
  border-radius: var(--p10-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .p10-gallery-show__card {
    padding: 20px 22px;
  }
}

.p10-gallery-show__lead {
  display: block;
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
}

.p10-gallery-show__lead img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.p10-gallery-show__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--p10-secondary);
}

.p10-gallery-show__text p {
  margin: 0 0 10px;
}

.p10-gallery-show__text p:last-child {
  margin-bottom: 0;
}

.p10-gallery-show__external {
  margin: 14px 0 0;
}

.p10-gallery-show__external a {
  font-size: 14px;
  font-weight: 600;
  color: var(--p10-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p10-gallery-show__external a:hover {
  color: #000;
}

.p10-gallery-show__section-title {
  margin: 18px 0 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--p10-text);
}

.p10-gallery-show__carousel {
  position: relative;
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
}

.p10-gallery-show__carousel .galleryCarousel__image {
  max-height: 260px;
  overflow: hidden;
}

.p10-gallery-show__carousel .galleryCarousel__img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.p10-gallery-show__carousel .swiper-button {
  color: var(--p10-lime) !important;
}

.p10-gallery-show__comments {
  margin-top: 18px;
}

body.v2-page .p10-gallery-show__comments .br-widget a {
  color: #1F1F1F;
}
