/* ==================================================
   GLOBAL FULL WIDTH PRO STYLE
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #07070a !important;
  color: #ffffff;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==================================================
   GENERATEPRESS TRUE FULL WIDTH RESET
================================================== */

.site,
.site-content,
.container,
.grid-container,
.inside-header,
.inside-navigation,
.inside-article,
.content-area,
.site-main,
.entry-content,
#page,
#content,
#primary,
#main {
  width: 100% !important;
  max-width: 100% !important;
}

.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

.inside-article {
  background: transparent !important;
}

.separate-containers .inside-article {
  padding: 0 !important;
}

.separate-containers .site-main {
  margin: 0 !important;
}

.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation {
  margin: 0 !important;
}

body,
.site,
#page,
#content,
.site-content {
  background: #07070a !important;
}

/* ==================================================
   HEADER PRO STYLE
================================================== */

.site-header {
  width: 100% !important;
  background: rgba(7, 7, 10, 0.94) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.inside-header {
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.main-title a,
.site-description,
.main-navigation a {
  color: #ffffff !important;
}

.main-navigation,
.main-navigation ul ul {
  background: #07070a !important;
}

.main-navigation a:hover,
.main-navigation .main-nav ul li:hover > a {
  color: #ec008c !important;
  background: transparent !important;
}

/* ==================================================
   PAGE CONTENT HOMEPAGE
================================================== */

.gallery-home,
.homepage-page-content {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #07070a !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.homepage-page-content > * {
  margin-top: 0;
}

/* ==================================================
   VIDEO ROW
================================================== */

.home-video-section {
  width: 100%;
  padding: 18px 10px 10px;
  background:
    radial-gradient(circle at 15% 0%, rgba(236,0,140,.18), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(53,200,234,.14), transparent 36%),
    #07070a;
}

.home-video-heading {
  max-width: 1280px;
  margin: 0 auto 14px;
  padding: 0 6px;
}

.home-video-heading h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.home-video-heading p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  line-height: 1.5;
}

.home-video-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
}

.home-video-card iframe,
.home-video-card video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==================================================
   OPTIONAL HERO BLOCK
================================================== */

.gallery-hero {
  width: 100%;
  text-align: center;
  padding: 64px 18px 46px;
  background:
    radial-gradient(circle at 12% 0%, rgba(236,0,140,.22), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(53,200,234,.16), transparent 36%),
    linear-gradient(180deg, #0d0d14 0%, #07070a 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.gallery-hero h1 {
  max-width: 1200px;
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(38px, 6vw, 92px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.gallery-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255,255,255,.68);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.65;
}

/* ==================================================
   FULL WIDTH GALLERY GRID
================================================== */

.gallery-grid {
  width: 100vw !important;
  max-width: 100vw !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 4px !important;
  margin: 0 !important;
  background: #07070a !important;
  align-items: start !important;
}

/* ==================================================
   CARD
================================================== */

.cos-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #fff;
}

.cos-thumb {
  position: relative;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden;
  border-radius: 10px !important;
  background: #111;
  box-shadow: none !important;
  transform: translateZ(0);
}

/* clickable image area */
.cos-main-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: #fff;
  text-decoration: none;
}

.cos-main-link img,
.cos-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transform: scale(1.001);
  transition: transform .35s ease, filter .35s ease;
}

.cos-card:hover .cos-main-link img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.04);
}

/* overlay */
.cos-main-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.54) 0%, rgba(0,0,0,.12) 34%, rgba(0,0,0,.08) 58%, rgba(0,0,0,.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,.25) 0%, transparent 45%);
}

/* remove old pink/purple top bar */
.cos-top-gradient {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* title */
.cos-title {
  position: absolute;
  top: 18px !important;
  left: 16px;
  right: 16px;
  z-index: 3;
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 30px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
  pointer-events: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================================================
   BOTTOM TAGS + IMAGE COUNT
================================================== */

.cos-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.cos-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: calc(100% - 72px);
  pointer-events: auto;
}

.cos-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 135px;
  min-height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 11;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 16px rgba(0,0,0,.38);
}

.cos-tag:hover,
.cos-tag:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.cos-tag.tag-0 {
  background: rgba(236,0,140,.94);
}

.cos-tag.tag-1 {
  background: rgba(53,200,234,.94);
}

.cos-tag.tag-2 {
  background: rgba(91,53,143,.94);
}

/* image count badge */
.cos-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(16,18,24,.90);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  pointer-events: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.38);
}

/* CSS camera icon, not emoji */
.camera-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 13px;
  border-radius: 4px;
  background: #dce4ea;
  flex: 0 0 auto;
}

.camera-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -4px;
  width: 7px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #8b9aa5;
}

.camera-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f8ed8;
  border: 2px solid #20242c;
  box-shadow: 0 0 0 2px #dce4ea;
}

/* ==================================================
   LOADER
================================================== */

.gallery-loader {
  display: none;
  text-align: center;
  padding: 34px;
  color: rgba(255,255,255,.65);
  font-size: 15px;
  background: #07070a;
}

/* ==================================================
   SINGLE POST PAGE
================================================== */

.single-gallery-page {
  width: 100% !important;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 18px;
  background: #07070a;
  color: #fff;
}

.single-gallery-title {
  max-width: 980px;
  margin: 0 auto 14px;
  color: #fff;
  font-size: 18px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.single-gallery-desc {
  max-width: 820px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,.68);
  font-size: 18px;
  line-height: 1.7;
}

.single-gallery-content {
  max-width: 980px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.single-gallery-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: #111;
}

.single-gallery-content figure {
  margin-left: 0;
  margin-right: 0;
}

/* ==================================================
   RESPONSIVE
================================================== */

/* small desktop / tablet landscape */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-video-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cos-title {
    font-size: clamp(18px, 2vw, 26px);
  }
}

/* tablet */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-video-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cos-title {
    left: 13px;
    right: 13px;
    font-size: 23px;
  }
}

/* mobile */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .home-video-section {
    padding: 20px 10px 10px;
  }

  .home-video-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
  }

  .home-video-card {
    border-radius: 16px;
  }

  .gallery-hero {
    padding: 34px 16px 28px;
  }

  .gallery-hero h1 {
    font-size: 36px;
  }

  .gallery-hero p {
    font-size: 15px;
  }

  .cos-thumb {
    border-radius: 16px !important;
  }

  .cos-title {
    top: 18px !important;
    left: 16px;
    right: 16px;
    font-size: 26px;
    line-height: 1.12;
    -webkit-line-clamp: 3;
  }

  .cos-bottom {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .cos-tags {
    gap: 7px;
    max-width: calc(100% - 78px);
  }

  .cos-tag {
    max-width: 155px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 15px;
  }

  .cos-count {
    min-height: 36px;
    padding: 0 13px;
    font-size: 17px;
  }

  .camera-icon {
    width: 18px;
    height: 14px;
  }

  .camera-icon::after {
    width: 8px;
    height: 8px;
  }

  .single-gallery-page {
    padding: 30px 12px;
  }

  .single-gallery-title {
    font-size: 34px;
  }

  .single-gallery-desc {
    font-size: 16px;
  }
}