/* ══════════════════════════════════════════════
   Photo Category Page — all scoped to
   .photo-cat-wrap (no :root variables)
   ══════════════════════════════════════════════ */

/* ── Page Header ── */
.photo-cat-wrap .photos-page-header {
    padding: 24px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.photo-cat-wrap .photos-page-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #e05c00;
    border-radius: 3px;
    flex-shrink: 0;
}
.photo-cat-wrap .photos-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.photo-cat-wrap .photos-page-header h1 span {
    color: #e05c00;
}

/* ── Section Header ── */
.photo-cat-wrap .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e05c00;
    margin-bottom: 20px;
    padding-bottom: 8px;
}
.photo-cat-wrap .section-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.photo-cat-wrap .section-count {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* ── Gallery Grid ── */
.photo-cat-wrap .gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

/* ── Gallery Card ── */
.photo-cat-wrap .gallery-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}
.photo-cat-wrap .gallery-card-img {
    position: relative;
    overflow: hidden;
    background: #eee;
}
.photo-cat-wrap .gallery-card-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.photo-cat-wrap .gallery-card:hover .gallery-card-img img {
    transform: scale(1.04);
}
.photo-cat-wrap .gallery-card-img-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,.88);
    border-radius: 4px;
    width: 26px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e05c00;
    font-size: 13px;
}
.photo-cat-wrap .gallery-card-body {
    padding: 10px 12px 12px;
    text-align: center;
}
.photo-cat-wrap .gallery-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.photo-cat-wrap .gallery-card-date {
    font-size: 11px;
    color: #555;
    margin: 5px 0 0;
}

/* ── Empty State ── */
.photo-cat-wrap .no-galleries {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}
.photo-cat-wrap .no-galleries i {
    font-size: 40px;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

/* ── Pagination ── */
.photo-cat-wrap .pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 30px;
    flex-wrap: wrap;
}
.photo-cat-wrap .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;
}
.photo-cat-wrap .page-btn:hover {
    background: #e05c00;
    color: #fff;
    border-color: #e05c00;
    text-decoration: none;
}
.photo-cat-wrap .page-btn.active {
    background: #e05c00;
    color: #fff;
    border-color: #e05c00;
    pointer-events: none;
}
.photo-cat-wrap .page-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .photo-cat-wrap .gallery-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
    .photo-cat-wrap .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .photo-cat-wrap .gallery-card-img img { height: 140px; }
}
@media (max-width: 380px) {
    .photo-cat-wrap .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* end here*/

/* ══════════════════════════════════════════════
   Photos Index Page — all scoped to
   .photos-index-wrap (no :root variables)
   ══════════════════════════════════════════════ */

.photos-index-wrap .photos-page-header {
    padding: 24px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.photos-index-wrap .photos-page-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #e05c00;
    border-radius: 3px;
    flex-shrink: 0;
}
.photos-index-wrap .photos-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.photos-index-wrap .photos-page-header h1 span {
    color: #e05c00;
}
.photos-index-wrap .photos-category-block {
    margin-bottom: 40px;
}
.photos-index-wrap .category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e05c00;
    margin-bottom: 18px;
    padding-bottom: 8px;
}
.photos-index-wrap .category-block-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.photos-index-wrap .category-view-all {
    font-size: 12px;
    font-weight: 600;
    color: #e05c00;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}
.photos-index-wrap .category-view-all:hover {
    gap: 8px;
    text-decoration: none;
}
.photos-index-wrap .gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.photos-index-wrap .gallery-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}
.photos-index-wrap .gallery-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eee;
}
.photos-index-wrap .gallery-card-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.photos-index-wrap .gallery-card:hover .gallery-card-img img {
    transform: scale(1.04);
}
.photos-index-wrap .gallery-card-img-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,.88);
    border-radius: 4px;
    width: 26px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e05c00;
    font-size: 13px;
}
.photos-index-wrap .gallery-card-body {
    padding: 10px 12px 12px;
    text-align: center;
}
.photos-index-wrap .gallery-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.photos-index-wrap .no-galleries {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}
.photos-index-wrap .no-galleries i {
    font-size: 40px;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}
@media (max-width: 991px) {
    .photos-index-wrap .gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
    .photos-index-wrap .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .photos-index-wrap .gallery-card-img img { height: 140px; }
}
@media (max-width: 380px) {
    .photos-index-wrap .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/*end here*/

/* ══════════════════════════════════════════════════
   Gallery Detail — all selectors scoped to
   .gallery-detail-wrap (no :root variables)
   ══════════════════════════════════════════════════ */

/* ── Header ── */
.gallery-detail-wrap .gallery-detail-header { padding: 24px 0 14px; }
.gallery-detail-wrap .gallery-detail-header h1 {
  font-size: 26px; font-weight: 700;
  color: #222; line-height: 1.4; margin: 0 0 8px;
}
.gallery-detail-wrap .gallery-detail-meta {
  display: flex; align-items: center;
  gap: 14px; font-size: 12px; color: #555; flex-wrap: wrap;
}
.gallery-detail-wrap .gallery-detail-meta a { color: #e05c00; text-decoration: none; font-weight: 600; }
.gallery-detail-wrap .gallery-detail-meta a:hover { text-decoration: underline; }
.gallery-detail-wrap .gallery-detail-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Compact Share Bar ── */
.gallery-detail-wrap .share-bar {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 20px; flex-wrap: wrap;
  padding: 10px 13px;
  background: #f9f9f9;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
}
.gallery-detail-wrap .share-bar-label {
  font-size: 11px; font-weight: 700; color: #222;
  text-transform: uppercase; letter-spacing: .06em;
  margin-right: 2px; white-space: nowrap;
}
/* Icon-only share buttons */
.gallery-detail-wrap .share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 7px;
  text-decoration: none; color: #fff;
  border: none; cursor: pointer;
  transition: transform .18s, box-shadow .18s, opacity .18s;
  box-shadow: 0 1px 5px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.gallery-detail-wrap .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: .92; color: #fff;
}
.gallery-detail-wrap .share-btn svg {
  width: 15px; height: 15px; fill: currentColor; flex-shrink: 0;
}
/* Copy link: stroke-based icon */
.gallery-detail-wrap .share-btn.cp svg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.gallery-detail-wrap .share-btn.fb { background: #1877f2; }
.gallery-detail-wrap .share-btn.tw { background: #000; }
.gallery-detail-wrap .share-btn.wa { background: #25d366; }
.gallery-detail-wrap .share-btn.tg { background: #2aabee; }
.gallery-detail-wrap .share-btn.cp { background: #4b5563; }

/* ── Photos grid — single column, full width ── */
.gallery-detail-wrap .photos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px; margin-bottom: 32px;
}
.gallery-detail-wrap .photo-item {
  border-radius: 9px; overflow: hidden;
  background: #fff; cursor: pointer; position: relative;
  border: 1px solid #e2e2e2;
  transition: box-shadow .22s, transform .22s;
}
.gallery-detail-wrap .photo-item:hover { box-shadow: 0 6px 22px rgba(0,0,0,.13); transform: translateY(-2px); }

.gallery-detail-wrap .photo-item-img-wrap { position: relative; overflow: hidden; }
.gallery-detail-wrap .photo-item img {
  width: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-detail-wrap .photo-item:hover img { transform: scale(1.02); }

.gallery-detail-wrap .photo-item-number {
  position: absolute; top: 9px; right: 9px;
  background: rgba(0,0,0,.58);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: .03em; line-height: 1.6;
  backdrop-filter: blur(4px);
}
.gallery-detail-wrap .photo-item-zoom {
  position: absolute; top: 9px; left: 9px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #e05c00;
  opacity: 0; transition: opacity .22s;
}
.gallery-detail-wrap .photo-item:hover .photo-item-zoom { opacity: 1; }

.gallery-detail-wrap .photo-item-caption-bar {
  padding: 9px 13px 11px;
  border-top: 1px solid #e2e2e2;
  background: #fff;
}
.gallery-detail-wrap .photo-item-caption {
  font-size: 16px; color: #555;
  line-height: 1.5; margin: 0;font-weight: 600;
}

/* ── Section header ── */
.gallery-detail-wrap .section-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid #e05c00; margin-bottom: 16px; padding-bottom: 7px;
}
.gallery-detail-wrap .section-title { font-size: 16px; font-weight: 700; color: #222; margin: 0; }
.gallery-detail-wrap .section-view-all {
  font-size: 11px; font-weight: 600; color: #e05c00; text-decoration: none;
  text-transform: uppercase; letter-spacing: .04em;
  display: flex; align-items: center; gap: 4px; transition: gap .15s;
}
.gallery-detail-wrap .section-view-all:hover { gap: 8px; text-decoration: none; }

/* ── Related grid ── */
.gallery-detail-wrap .gallery-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.gallery-detail-wrap .gallery-card {
  display: block; text-decoration: none; background: #fff;
  border-radius: 9px; border: 1px solid #e2e2e2;
  overflow: hidden; transition: box-shadow .22s, transform .22s;
}
.gallery-detail-wrap .gallery-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-3px); text-decoration: none; }
.gallery-detail-wrap .gallery-card-img { position: relative; overflow: hidden; background: #eee; }
.gallery-detail-wrap .gallery-card-img img { width: 100%; height: 155px; object-fit: cover; display: block; transition: transform .35s; }
.gallery-detail-wrap .gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
.gallery-detail-wrap .gallery-card-img-icon {
  position: absolute; bottom: 7px; right: 7px;
  background: rgba(255,255,255,.88); border-radius: 4px;
  width: 24px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #e05c00; font-size: 11px;
}
.gallery-detail-wrap .gallery-card-body { padding: 9px 11px 11px; text-align: center; }
.gallery-detail-wrap .gallery-card-title {
  font-size: 12px; font-weight: 500; color: #222; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-detail-wrap .gallery-card-date { font-size: 10px; color: #555; margin: 3px 0 0; }

.gallery-detail-wrap .no-photos { text-align: center; padding: 50px 20px; color: #555; }
.gallery-detail-wrap .no-photos i { font-size: 38px; color: #ccc; display: block; margin-bottom: 10px; }

/* ── Lightbox ── */
.gd-lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center;
  flex-direction: column; padding: 20px;
}
.gd-lightbox-overlay.open { display: flex; }
.gd-lightbox-inner {
  position: relative; max-width: 900px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.gd-lightbox-img {
  max-width: 100%; max-height: 80vh; border-radius: 8px;
  object-fit: contain; box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
.gd-lightbox-close {
  position: fixed; top: 15px; right: 18px;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; z-index: 10000;
  line-height: 1; opacity: .8; transition: opacity .18s;
}
.gd-lightbox-close:hover { opacity: 1; }
.gd-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 20px; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s; z-index: 10000;
}
.gd-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.gd-lightbox-nav.prev { left: -54px; }
.gd-lightbox-nav.next { right: -54px; }
.gd-lightbox-counter { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.5); }

/* ── Toast ── */
.gd-toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #222; color: #fff; padding: 9px 18px;
  border-radius: 6px; font-size: 13px; z-index: 99999;
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.gd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ══ Left Latest News Sidebar ══ */
.lnews-sidebar-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e05c00;
}
.lnews-sidebar-accent {
  width: 4px; height: 18px;
  background: #e05c00;
  border-radius: 2px; flex-shrink: 0;
}
.lnews-sidebar-title {
  font-size: 14px; font-weight: 700;
  color: #222; margin: 0;
}
.lnews-sidebar-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.lnews-sidebar-item {
    border: 1px solid #e2dcdc;
    border-radius: 7px;
    padding: 7px 10px;
    transition: border-color .18s, background .18s;
}
.lnews-sidebar-item:hover {
  border-color: #e05c00;
  background: #fff8f5;
}
.lnews-sidebar-link {
  display: block;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  line-height: 1.45;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
  font-weight: 600;
  padding-left: 2px;
}
.lnews-sidebar-item:hover .lnews-sidebar-link { color: #e05c00; }

/* Hide on mobile/tablet — Bootstrap handles hidden-sm/hidden-xs but reinforce: */
@media (max-width: 767px) {
  .lnews-sidebar { display: none !important; }
  /* Restore full width for main content on mobile */
  .main--content { width: 100% !important; }
}
@media (max-width: 991px) {
  .gallery-detail-wrap .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gd-lightbox-nav.prev { left: 4px; }
  .gd-lightbox-nav.next { right: 4px; }
}
@media (max-width: 600px) {
  .gallery-detail-wrap .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-detail-wrap .gallery-card-img img { height: 125px; }
  .gallery-detail-wrap .gallery-detail-header h1 { font-size: 17px; }
  /*.gallery-detail-wrap .photo-item img { max-height: 380px; }*/
}
/*end here*/