/* Public site + login: theme layer (loaded after style.css) */

/* ---- Toggle button ---- */
.theme-selector-wrap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Theme toggle müvəqqəti deaktivdir: yalnız dark mode istifadə olunur. */
.theme-selector-wrap,
.theme-login-toggle-wrap,
.theme-toggle-btn,
[data-theme-toggle="true"] {
  display: none !important;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--main-color, #bc885d);
  color: var(--main-color, #bc885d);
}

.theme-toggle-btn:focus {
  outline: none;
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--main-color, #bc885d);
  outline-offset: 2px;
}

.theme-toggle-btn__icons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.theme-toggle-btn__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  shape-rendering: geometricPrecision;
}

html[data-theme="dark"] .theme-toggle-btn__icon--moon {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

html[data-theme="dark"] .theme-toggle-btn__icon--sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-toggle-btn__icon--sun {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

html[data-theme="light"] .theme-toggle-btn__icon--moon {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle-btn__icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-login-toggle-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
}

/* Header right controls order: search should be left of language switcher */
.navbar-area .nav-container .nav-right-content ul {
  display: flex;
  align-items: center;
}

.navbar-area .nav-container .nav-right-content ul li.search-wrapper {
  order: 1;
}

.navbar-area .nav-container .nav-right-content ul li.language-selector {
  order: 2;
}

.navbar-area .nav-container .nav-right-content ul li.togglebar {
  order: 4;
}

.theme-toggle-btn--login {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Dark (default cinematic; sync nav chrome) ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  /* Tokenlər — :root ilə uyğun; komponentlər var() ilə eyni API */
  --main-color: #bc885d;
  --hover-color: #815937;
  --secondary-color: #30373f;
  --heading-color: #f5f7fa;
  --paragraph-color: #b4bac8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-toggle-btn {
  background: rgba(30, 32, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8eaef;
}

html[data-theme="dark"] .navbar-area .nav-container .nav-right-content ul li a {
  color: #c5ccdb;
}

html[data-theme="dark"] .search-trigger {
  background: rgba(30, 32, 40, 0.92);
  color: #e8eaef;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .search-trigger:hover {
  background: var(--main-color);
  color: #fff;
  border-color: transparent;
}

html[data-theme="dark"] .navbar.navbar-area .navbar-toggler-icon {
  filter: invert(1) brightness(1.08);
}

html[data-theme="dark"] .navbar-area .nav-container .navbar-collapse .navbar-nav li.menu-item-has-children::before {
  color: rgba(236, 240, 245, 0.75);
}

html[data-theme="dark"] .navbar-area .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu {
  background-color: #16181e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"]
  .navbar-area
  .navbar-collapse
  .navbar-nav
  li.menu-item-has-children
  .sub-menu
  li
  a {
  background-color: transparent !important;
  color: #cfd6e6 !important;
}

html[data-theme="dark"]
  .navbar-area
  .navbar-collapse
  .navbar-nav
  li.menu-item-has-children
  .sub-menu
  li
  a:hover {
  background-color: rgba(188, 136, 93, 0.25) !important;
  color: #fff !important;
}

html[data-theme="dark"] .search-popup {
  background: #1a1c22 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .search-popup .form-control {
  background: #12141a;
  color: #e8eaef;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .gray-bg {
  background-color: #12141a !important;
}

html[data-theme="dark"] .section-bg-1 {
  background-color: #16181e !important;
}

html[data-theme="dark"] .breadcrumb-area {
  background-color: rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .footer-area.style-1 {
  background: linear-gradient(180deg, #0f1014 0%, #12141a 100%) !important;
}

html[data-theme="dark"] .footer-area .title,
html[data-theme="dark"] .footer-area .sub-title {
  color: #f0f2f6 !important;
}

html[data-theme="dark"] .blog-area,
html[data-theme="dark"] .blog-details-area,
html[data-theme="dark"] .news-area,
html[data-theme="dark"] .news-details-area {
  background-color: #0f1014 !important;
}

html[data-theme="dark"] .single-blog-list-item,
html[data-theme="dark"] .single-news-list-item {
  background: #16181e !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .single-blog-list-item .content .title,
html[data-theme="dark"] .single-news-list-item .content .title {
  color: #f0f2f6 !important;
}

html[data-theme="dark"] .single-blog-list-item .content p,
html[data-theme="dark"] .single-news-list-item .content p {
  color: #b4bac8 !important;
}

/* ---- Light (gündüz) ---- */
html[data-theme="light"] {
  color-scheme: light;
  --main-color: #9a6b42;
  --hover-color: #6d4a2e;
  --secondary-color: #1e293b;
  --heading-color: #0f172a;
  --paragraph-color: #475569;
  --glass-bg: rgba(15, 23, 42, 0.04);
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] body {
  background-color: #f1f5f9;
  color: var(--paragraph-color);
}

html[data-theme="light"] a,
html[data-theme="light"] a:hover,
html[data-theme="light"] a:focus {
  color: #b45309;
}

html[data-theme="light"] .navbar-area .navbar-collapse .navbar-nav li a {
  color: #334155 !important;
}

html[data-theme="light"] .navbar-area .navbar-collapse .navbar-nav li a:hover,
html[data-theme="light"] .navbar-area .navbar-collapse .navbar-nav li.current-menu-item a {
  color: var(--main-color) !important;
}

html[data-theme="light"] .navbar-area .nav-container .nav-right-content ul li a {
  color: #475569;
}

html[data-theme="light"] .navbar-area .nav-container .nav-right-content ul li.togglebar .line {
  background: #334155 !important;
}

html[data-theme="light"] .nav-togglebar-line {
  background: #334155 !important;
}

html[data-theme="light"] .togglebar-line {
  background: #334155 !important;
}

html[data-theme="light"] .news-nav-togglebar-line {
  background: #334155 !important;
}

html[data-theme="light"] .logo-wrapper {
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), 0 0 0 6px rgba(148, 163, 184, 0.25) !important;
}

html[data-theme="light"] .gray-bg {
  background-color: #e8edf3 !important;
}

html[data-theme="light"] .section-bg-1 {
  background-color: #eef2f7 !important;
}

html[data-theme="light"] .footer-area.style-1 {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .footer-area .title {
  color: #0f172a !important;
}

html[data-theme="light"] .footer-area .sub-title,
html[data-theme="light"] .footer-area .sub-title a {
  color: #334155 !important;
}

html[data-theme="light"] .footer-social-media a {
  color: #334155 !important;
  border-color: rgba(154, 107, 66, 0.45) !important;
  background: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="light"] .footer-social-media li a:hover {
  color: #fff !important;
}

/* Ağ fon üçün PNG (IMDb, TikTok) — tünd siluet; layout/blog/xəbər üçün fərqli img klassları */
html[data-theme="light"] .footer-social-media li a img.footer-social-icon-img,
html[data-theme="light"] .footer-social-media li a img.footer-social-img,
html[data-theme="light"] .footer-social-media li a img.news-footer-social-img {
  filter: invert(1) brightness(0.28) !important;
}

/* Sosial SVG ikonları formaları ayırd etmək üçün invert filtirini söndür */
html[data-theme="light"] .footer-social-media li a img.footer-social-icon-img[src*="/icon/social/"] {
  filter: none !important;
  opacity: 0.92;
}

html[data-theme="light"] .footer-social-media li a:hover img.footer-social-icon-img[src*="/icon/social/"] {
  filter: none !important;
  opacity: 1;
}

html[data-theme="light"] .footer-social-media li a:hover img.footer-social-icon-img:not([src*="/icon/social/"]),
html[data-theme="light"] .footer-social-media li a:hover img.footer-social-img,
html[data-theme="light"] .footer-social-media li a:hover img.news-footer-social-img {
  filter: brightness(0) invert(1) !important;
}

/* Contact page: same fragment as footer, laid out as a horizontal row */
/* İkon şəkilləri dairəvi border və ::before qatının üstündə qalsın */
.footer-social-media li a img.footer-social-icon-img {
  position: relative;
  z-index: 1;
}

/* Footer / contact sosial ikonları — masaüstü: base style.css 60px-dan bir qədər kiçik */
.footer-social-media li a {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

.footer-social-media li a img.footer-social-icon-img,
.footer-social-media li a img.footer-social-img,
.footer-social-media li a img.news-footer-social-img {
  width: 46px;
  height: 46px;
  max-width: 46px;
  padding-top: 0;
  object-fit: contain;
}

@media only screen and (max-width: 768px) {
  .footer-social-media li a {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .footer-social-media li a img.footer-social-icon-img,
  .footer-social-media li a img.footer-social-img,
  .footer-social-media li a img.news-footer-social-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
  }
}

@media only screen and (max-width: 480px) {
  .footer-social-media li a {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .footer-social-media li a img.footer-social-icon-img,
  .footer-social-media li a img.footer-social-img,
  .footer-social-media li a img.news-footer-social-img {
    width: 32px;
    height: 32px;
    max-width: 32px;
  }
}

.contact-page-social .contact-social-links-row.footer-social-media,
ul.footer-social-media.contact-social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

@media (min-width: 992px) {
  .contact-page-social .contact-social-links-row.footer-social-media,
  ul.footer-social-media.contact-social-links-row {
    justify-content: flex-start;
  }
}

html[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .footer-bottom .copyright-area p {
  color: #475569 !important;
}

html[data-theme="light"] .breadcrumb-area .breadcrumb .breadcrumb-item,
html[data-theme="light"] .breadcrumb-area .breadcrumb .breadcrumb-item a {
  color: #475569 !important;
}

html[data-theme="light"] .breadcrumb-area .breadcrumb .breadcrumb-item.active {
  color: #0f172a !important;
}

html[data-theme="light"] .search-popup {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-lg) !important;
}

html[data-theme="light"] .search-popup .form-control {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

html[data-theme="light"] .contact-form-wrap,
html[data-theme="light"] .contact-area .contact-inner {
  background: #fff !important;
}

/* Əlaqə səhifəsi — gündüz (style.css .section-title .title #fff yüksək spesifikliklidir) */
html[data-theme="light"] .contact-area {
  background-color: #f8fafc !important;
}

html[data-theme="light"] .contact-area .section-title .title.contact-section-title-text {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-area .contact-section-desc-text {
  color: #475569 !important;
}

html[data-theme="light"] .contact-area .contact-form-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: var(--shadow-md) !important;
}

html[data-theme="light"] .contact-area .form-header-main {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-area .contact-info-icon {
  background: #ffffff !important;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .contact-area .contact-info-icon img {
  filter: none !important;
}

html[data-theme="light"] .blog-area,
html[data-theme="light"] .blog-details-area,
html[data-theme="light"] .news-area,
html[data-theme="light"] .news-details-area {
  background-color: #f8fafc !important;
}

html[data-theme="light"] .single-blog-list-item,
html[data-theme="light"] .single-news-list-item {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .single-blog-list-item .content .title,
html[data-theme="light"] .single-news-list-item .content .title {
  color: #0f172a !important;
}

html[data-theme="light"] .single-blog-list-item .content p,
html[data-theme="light"] .single-news-list-item .content p {
  color: #64748b !important;
}

html[data-theme="light"] .page-background {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .empty-state-card {
  background: #fff !important;
  border: 1px solid #e2e8f0;
  color: #64748b !important;
}

html[data-theme="light"] .no-data-text-muted {
  color: #64748b !important;
}

html[data-theme="light"] .no-data-text-white {
  color: #0f172a !important;
}

html[data-theme="light"] .team-title-white {
  color: #0f172a !important;
}

html[data-theme="light"] .instagram-icon {
  color: #0f172a !important;
}

html[data-theme="light"] .search-trigger {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .search-trigger:hover {
  background: var(--main-color);
  color: #fff;
  border-color: transparent;
}

html[data-theme="light"] .language-selector .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .language-selector .dropdown-menu li a {
  color: #334155 !important;
}

html[data-theme="light"] .language-selector .dropdown-menu li a:hover {
  color: #0f172a !important;
  background-color: rgba(154, 107, 66, 0.12) !important;
}

/* News / blog inline :root pages */
html[data-theme="dark"] body {
  background-color: #0a0b0e !important;
}

html[data-theme="dark"] .glass-card-news {
  background: #16181e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .glass-card-news .text-dark,
html[data-theme="dark"] .glass-card-news .featured-news-title-link {
  color: #e8eaef !important;
}

html[data-theme="dark"] .glass-card-news .card-news-body,
html[data-theme="dark"] .glass-card-news .card-news-body p {
  color: #b4bac8 !important;
}

html[data-theme="dark"] .glass-card-news .card-category-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .glass-card-news {
  background: #fff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Login page (inline styles overridden) */
html[data-theme="dark"] body.login-theme-body,
html[data-theme="dark"] .login-theme-body {
  background: linear-gradient(145deg, #0f1014 0%, #1a1d28 50%, #12141a 100%) !important;
}

html[data-theme="dark"] .login-card {
  background: #16181e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .login-header h1 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .login-header p,
html[data-theme="dark"] .form-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .form-control {
  background: #12141a !important;
  color: #e8eaef !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .input-icon {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #c49a6c 0%, #9a6b42 100%) !important;
  color: #0f1014 !important;
}

html[data-theme="dark"] .divider span {
  background: #16181e !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .divider::before {
  background: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .back-link a {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .security-note {
  background: #12141a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .security-note span {
  color: #cbd5e1 !important;
}

html[data-theme="light"] body.login-theme-body,
html[data-theme="light"] .login-theme-body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

/* Əlaqə səhifəsi — gecə rejimi (contact.html-dəki sabit ağ/qara stillərin üzərindən) */
html[data-theme="dark"] .contact-area {
  background-color: #090909 !important;
}

html[data-theme="dark"] .contact-section-title-text {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .contact-section-desc-text {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .contact-form-container {
  background: #16181e !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .form-header-main {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .contact-form .form-input-field,
html[data-theme="dark"] .contact-form .form-control {
  background-color: #12141a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8eaef !important;
}

html[data-theme="dark"] .contact-form .form-input-field:focus,
html[data-theme="dark"] .contact-form .form-control:focus {
  border-color: rgba(188, 136, 93, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(188, 136, 93, 0.2) !important;
}

html[data-theme="dark"] .contact-form .form-input-field::placeholder,
html[data-theme="dark"] .contact-form textarea.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

html[data-theme="dark"] .contact-form select.form-control {
  color-scheme: dark;
}

html[data-theme="dark"] .contact-form select.form-control option {
  background-color: #12141a;
  color: #e8eaef;
}

html[data-theme="dark"] .form-icon-overlay {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .contact-area .contact-details ul li h4,
html[data-theme="dark"] .contact-info-content h4 {
  color: #e8eaef !important;
}

html[data-theme="dark"] .contact-area .contact-details ul li p,
html[data-theme="dark"] .contact-info-content p {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .contact-info-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .contact-info-item:hover .contact-info-content h4 {
  color: var(--main-color) !important;
}

html[data-theme="dark"] .contact-info-icon {
  background: #1e2028 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* PNG ikonları tünd dairə üzərində oxunaqlı — vizual ağ ikon */
html[data-theme="dark"] .contact-info-icon img {
  filter: brightness(0) invert(1) !important;
}

/* Ana səhifə fonu — index-də struktur blokdan ayrılıb */
html[data-theme="dark"] .page-background {
  background-color: #090909 !important;
}

/* Hero / banner oxunaqlılıq (fon şəkli dəyişkəndir — gradient + mətn) */
html[data-theme="dark"] .hero-banner-area::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.48) 55%,
    rgba(0, 0, 0, 0.22) 100%
  ) !important;
}

html[data-theme="dark"] .hero-banner-area .banner-text .banenr-subtitle,
html[data-theme="dark"] .hero-banner-area .banner-text .banner-content {
  color: #cfd6e3 !important;
}

html[data-theme="light"] .hero-banner-area::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.44) 56%,
    rgba(0, 0, 0, 0.18) 100%
  ) !important;
}

html[data-theme="light"] .hero-banner-area .banner-text .banenr-subtitle,
html[data-theme="light"] .hero-banner-area .banner-text .banner-content {
  color: #e8edf5 !important;
}

/* Header scrim banner üstündə — gündüzdə tünd keçid daha yumşaq (link oxunaqlılığı) */
@media only screen and (min-width: 992px) {
  html[data-theme="light"]
    body:has(> header.header-area + div > .hero-banner-area:first-child)
    .header-area.style-1::before,
  html[data-theme="light"]
    body:has(> header.header-area + div.news-page-premium > section.hero-banner-premium:first-child)
    .header-area.style-1::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.12) 72%, transparent 100%);
  }
}

/* Mobil navbar — gündüz rejimində açıq panel */
@media only screen and (max-width: 991px) {
  html[data-theme="light"] .navbar-area.nav-style-01 {
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  }

  html[data-theme="light"] .navbar-area .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12) !important;
  }

  html[data-theme="light"] .navbar-area .navbar-collapse .navbar-nav li a {
    color: #334155 !important;
  }

  html[data-theme="light"] .navbar-area .navbar-collapse .navbar-nav li a:hover {
    color: var(--main-color) !important;
    background-color: rgba(188, 136, 93, 0.08);
  }
}

/* --- Portfolio səhifələri (.portfolio-page) --- */
.portfolio-page .breadcrumb-area {
  background-image: url("/assets/img/bg/breadcrumb.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

html[data-theme="dark"] .portfolio-page .service-area {
  background-color: #090909 !important;
}

html[data-theme="light"] .portfolio-page .service-area {
  background-color: #fafbfc !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-filter-panel,
html[data-theme="dark"] .portfolio-page .filtered-content-container {
  background: #12141a !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .portfolio-page .portfolio-filter-panel .text-center,
html[data-theme="dark"] .portfolio-page .filtered-content-container .text-center {
  color: #cbd5e1 !important;
}

html[data-theme="light"] .portfolio-page .portfolio-filter-panel,
html[data-theme="light"] .portfolio-page .filtered-content-container {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .portfolio-page .portfolio-filter-panel .text-center,
html[data-theme="light"] .portfolio-page .filtered-content-container .text-center {
  color: #475569 !important;
}

html[data-theme="dark"] .portfolio-page .category-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eaef;
}

html[data-theme="dark"] .portfolio-page .category-btn:hover {
  border-color: rgba(188, 136, 93, 0.45);
  color: #fff;
}

html[data-theme="dark"] .portfolio-page .category-btn.active {
  background: rgba(188, 136, 93, 0.42);
  border-color: rgba(212, 168, 120, 0.55);
  color: #fff;
}

html[data-theme="light"] .portfolio-page .category-btn {
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}

html[data-theme="light"] .portfolio-page .category-btn:hover {
  border-color: rgba(154, 107, 66, 0.45);
  color: var(--hover-color);
}

html[data-theme="light"] .portfolio-page .category-btn.active {
  background: rgba(154, 107, 66, 0.88);
  border-color: rgba(154, 107, 66, 0.95);
  color: #fff;
}

html[data-theme="dark"] .portfolio-page .gallery-item .gallery-details {
  background: #16181e !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .portfolio-page .gallery-details .project-category,
html[data-theme="dark"] .portfolio-page .gallery-details .project-desc {
  color: #b4bac8 !important;
}

html[data-theme="dark"] .portfolio-page .gallery-details .project-title,
html[data-theme="dark"] .portfolio-page .gallery-details .project-title a {
  color: #f0f2f6 !important;
}

html[data-theme="light"] .portfolio-page .gallery-item .gallery-details {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .portfolio-page .gallery-details .project-category,
html[data-theme="light"] .portfolio-page .gallery-details .project-desc {
  color: #64748b !important;
}

html[data-theme="light"] .portfolio-page .gallery-details .project-title,
html[data-theme="light"] .portfolio-page .gallery-details .project-title a {
  color: #0f172a !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-gallery-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="light"] .portfolio-page .portfolio-gallery-subtitle {
  color: #64748b !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-category-filters {
  flex-wrap: wrap;
}

html[data-theme="dark"] .portfolio-page .carousel-card {
  background: #16181e !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .portfolio-page .carousel-card .card-title,
html[data-theme="dark"] .portfolio-page .carousel-card .modal-details,
html[data-theme="dark"] .portfolio-page .card-header .card-title,
html[data-theme="dark"] .portfolio-page .category-title {
  color: #e8eaef !important;
}

html[data-theme="dark"] .portfolio-page .card-header {
  background: #1a1d24 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .portfolio-page .modal-content {
  background: #16181e !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .portfolio-page .carousel-nav-btn {
  background: rgba(22, 24, 30, 0.92);
  color: #e8eaef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .portfolio-page .carousel-nav-btn:hover {
  background: var(--main-color);
  color: #fff;
  border-color: transparent;
}

html[data-theme="dark"] .portfolio-page .modal-details {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-details-area .portfolio-details-wrap span {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-details-area .portfolio-details-wrap h5 {
  color: #f0f2f6 !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-details-area h3,
html[data-theme="dark"] .portfolio-page .portfolio-details-area h6 {
  color: #f0f2f6 !important;
}

html[data-theme="dark"] .portfolio-page .portfolio-details-area p,
html[data-theme="dark"] .portfolio-page .portfolio-details-area .wp-block-quote p,
html[data-theme="dark"] .portfolio-page .portfolio-details-area cite {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .portfolio-page .single-works-wrap .number {
  color: rgba(240, 242, 246, 0.35) !important;
}

html[data-theme="dark"] .portfolio-page .single-works-wrap h6 {
  color: #e8eaef !important;
}

html[data-theme="light"] .portfolio-page .carousel-card {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .portfolio-page .carousel-card .card-title,
html[data-theme="light"] .portfolio-page .card-header .card-title,
html[data-theme="light"] .portfolio-page .category-title {
  color: #0f172a !important;
}

html[data-theme="light"] .portfolio-page .portfolio-details-area .portfolio-details-wrap span {
  color: #64748b !important;
}

html[data-theme="light"] .portfolio-page .portfolio-details-area .portfolio-details-wrap h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .portfolio-page .portfolio-details-area h3,
html[data-theme="light"] .portfolio-page .portfolio-details-area h6 {
  color: #0f172a !important;
}

html[data-theme="light"] .portfolio-page .portfolio-details-area p,
html[data-theme="light"] .portfolio-page .portfolio-details-area .wp-block-quote p,
html[data-theme="light"] .portfolio-page .portfolio-details-area cite {
  color: #475569 !important;
}

html[data-theme="light"] .portfolio-page .card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .portfolio-page .modal-content {
  background: #fff !important;
}

html[data-theme="light"] .portfolio-page .modal-details {
  color: #334155 !important;
}

html[data-theme="light"] .portfolio-page .single-works-wrap h6 {
  color: #0f172a !important;
}

.portfolio-page .portfolio-category-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-page .portfolio-grid-layout {
  display: none;
}

.portfolio-page .grid-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: stretch;
}
.portfolio-page .grid-row .carousel-card {
  flex: 0 0 calc(33.3333% - 14px) !important;
  width: calc(33.3333% - 14px) !important;
  max-width: calc(33.3333% - 14px) !important;
}
@media (max-width: 992px) {
  .portfolio-page .grid-row .carousel-card {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}
@media (max-width: 768px) {
  .portfolio-page .grid-row .carousel-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.portfolio-page .portfolio-gallery-subtitle {
  text-align: center;
  margin-bottom: 30px;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

/* ============================================================
   # PUBLIC DARK UNIFICATION (single visual language)
   ============================================================ */
html[data-theme="dark"] body,
html[data-theme="dark"] .page-background {
  background-color: #090909 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .section-title .title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f8fafc !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .section-title p,
html[data-theme="dark"] .section-title .content {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .home-section-pill,
html[data-theme="dark"] .footer-inner .section-title .sub-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 34px;
  border: 2px solid rgba(188, 136, 93, 0.55) !important;
  border-radius: 999px;
  color: #c49a6c !important;
  background: rgba(11, 12, 16, 0.65) !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

html[data-theme="dark"] .home-section-pill:hover,
html[data-theme="dark"] .footer-inner .section-title .sub-title:hover {
  border-color: #d7b087 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #c99667 0%, #8b6244 100%) !important;
  box-shadow: 0 0 0 1px rgba(215, 176, 135, 0.22), 0 12px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .footer-inner .section-title .sub-title a,
html[data-theme="dark"] .footer-inner .section-title .sub-title a:hover,
html[data-theme="dark"] .footer-inner .section-title .sub-title a:focus {
  color: inherit !important;
  text-decoration: none;
}

html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .glass-card-news,
html[data-theme="dark"] .recent-blog-card,
html[data-theme="dark"] .single-news-list-item,
html[data-theme="dark"] .single-blog-list-item,
html[data-theme="dark"] .modern-widget,
html[data-theme="dark"] .about-timeline-body,
html[data-theme="dark"] .contact-form-container,
html[data-theme="dark"] .contact-info-item {
  background: linear-gradient(180deg, #171920 0%, #14161c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] .about-timeline-icon,
html[data-theme="dark"] .contact-info-icon {
  background: #12141a !important;
  border: 2px solid rgba(188, 136, 93, 0.55) !important;
  color: #c49a6c !important;
}

html[data-theme="dark"] .navbar-area.nav-style-01 {
  background: #0c0d11 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .navbar-area .navbar-collapse .navbar-nav li a {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .navbar-area .navbar-collapse .navbar-nav li a:hover,
html[data-theme="dark"] .navbar-area .navbar-collapse .navbar-nav li.current-menu-item a {
  color: #d4a373 !important;
}

html[data-theme="dark"] .primary-btn {
  background: linear-gradient(135deg, #d2a679 0%, #8b5e3c 100%) !important;
  color: #0f1115 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .primary-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Index son hissəsi: brands -> footer keçidi eyni dark ailədə qalsın */
html[data-theme="dark"] .brands-area {
  background: linear-gradient(180deg, #0d0e12 0%, #0f1014 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .recent-blog-area {
  background: linear-gradient(180deg, #0d0e12 0%, #0f1014 100%) !important;
}

html[data-theme="dark"] .brands-grid::before {
  background: linear-gradient(90deg, #0d0e12 0%, transparent 100%) !important;
}

html[data-theme="dark"] .brands-grid::after {
  background: linear-gradient(-90deg, #0f1014 0%, transparent 100%) !important;
}

html[data-theme="dark"] .brand-circle {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .brand-name {
  color: #d1d5db !important;
}

html[data-theme="dark"] .footer-area.style-1 {
  background: linear-gradient(180deg, #0f1014 0%, #090909 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Home helper class-ları üçün qaranlıq tonda vahidlik */
html[data-theme="dark"] .empty-state-card {
  background: #16181e !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .no-data-text-muted,
html[data-theme="dark"] .no-data-text-white {
  color: #cbd5e1 !important;
}

/* ============================================================
   # GOLDEN SECTION SEPARATORS (public pages)
   ============================================================ */
.public-section-separator {
  position: relative;
}

.public-section-separator + .public-section-separator::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 6vw, 96px);
  right: clamp(20px, 6vw, 96px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(196, 154, 108, 0) 0%,
    rgba(196, 154, 108, 0.42) 18%,
    rgba(196, 154, 108, 0.78) 50%,
    rgba(196, 154, 108, 0.42) 82%,
    rgba(196, 154, 108, 0) 100%
  );
  box-shadow: 0 0 10px rgba(196, 154, 108, 0.32);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .public-section-separator + .public-section-separator::before {
    left: 16px;
    right: 16px;
    opacity: 0.92;
  }
}

@media (max-width: 767.98px) {
  html[data-theme="dark"] .home-section-pill,
  html[data-theme="dark"] .footer-inner .section-title .sub-title {
    min-height: 46px;
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }
}

/* ============================================================
   # PUBLIC DARK — NEWS / BLOG WIDGETS & COMPONENTS
   (inline Thymeleaf styles — centralized dark overrides)
   ============================================================ */

/* Sidebar: categories + recent list */
html[data-theme="dark"] .fancy-category-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8eaef !important;
}

html[data-theme="dark"] .fancy-category-item:hover {
  background: rgba(188, 136, 93, 0.18) !important;
  border-color: rgba(196, 154, 108, 0.5) !important;
  color: #f0c896 !important;
}

html[data-theme="dark"] .cat-count {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #c49a6c !important;
  border: 1px solid rgba(196, 154, 108, 0.4) !important;
  box-shadow: none !important;
}

/* Beat jQuery .css() on category hover (news.html) */
html[data-theme="dark"] .fancy-category-item:hover .cat-count {
  background: rgba(188, 136, 93, 0.28) !important;
  color: #f0e3d2 !important;
  border-color: rgba(196, 154, 108, 0.55) !important;
}

html[data-theme="dark"] .post-list-item-modern {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .post-list-item-modern .info h6 {
  color: #e8eaef !important;
}

/* Buttons + pagination */
html[data-theme="dark"] .btn-premium-read {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e8eaef !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .btn-premium-read:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .btn-premium-back {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e8eaef !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .btn-premium-back:hover {
  background: rgba(188, 136, 93, 0.2) !important;
  color: #f0c896 !important;
  border-color: rgba(196, 154, 108, 0.45) !important;
}

html[data-theme="dark"] .share-btn-round {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e8eaef !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .premium-pagination .page-link {
  background: #16181e !important;
  color: #e8eaef !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .premium-pagination .page-item.active .page-link {
  border-color: transparent !important;
}

html[data-theme="dark"] .premium-pagination .page-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .premium-pagination .page-item.disabled .page-link {
  opacity: 0.4 !important;
}

/* News details */
html[data-theme="dark"] .article-meta-stripe {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .author-avatar-mini {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .detailed-content {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .detailed-content h2,
html[data-theme="dark"] .detailed-content h3 {
  color: #f8fafc !important;
}

/* Blog details + list */
html[data-theme="dark"] .blog-details {
  background: linear-gradient(180deg, #171920 0%, #14161c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .blog-detail-media {
  background: #12141a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .blog-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 12, 0.05) 0%,
    rgba(8, 9, 12, 0.2) 100%
  );
}

html[data-theme="dark"] .blog-detail-media-placeholder {
  background: linear-gradient(180deg, #191c23 0%, #14161c 100%) !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .blog-content {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .blog-meta span,
html[data-theme="dark"] .blog-meta a {
  color: #aab3c2 !important;
}

html[data-theme="dark"] .widgets-area .widget {
  background: linear-gradient(180deg, #171920 0%, #14161c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .widgets-area .widget .title,
html[data-theme="dark"] .widgets-area .widget a {
  color: #e8eaef !important;
}

html[data-theme="dark"] .blog-comment-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .blog-comment-avatar {
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .blog-comment-meta {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .blog-author-card-avatar {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Section headers (news list) */
html[data-theme="dark"] .star-box {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
}

html[data-theme="dark"] .latest-news-star-box {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
}

html[data-theme="dark"] .modern-widget .text-muted {
  color: #94a3b8 !important;
}

/* News list v2 (/news — chip bar + grid) */
html[data-theme="dark"] .news-page-v2 .modern-widget.news-empty {
  background: linear-gradient(180deg, #171920 0%, #14161c 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .news-page-v2 .btn-outline-secondary {
  color: #e8eaef !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .news-page-v2 .btn-outline-secondary:hover {
  color: #0f1115 !important;
  background: var(--main-color, #bc885d) !important;
  border-color: var(--main-color, #bc885d) !important;
}

/* Ana səhifə — Layihələr: Isotope masonry bu bölmədə işləmir (.home-portfolio-grid);
   masaüstündə kartlar Bootstrap toru ilə yan-yana (md+ üç sütun) */
.home-portfolio-grid.row > .gallery-item {
  display: block;
}

/* Portfolio siyahı (/portfolio): Isotope yox — CSS Grid + portfolio-filter-hidden ilə filtr */
.portfolio-page .portfolio-filter-grid {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .portfolio-page .portfolio-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .portfolio-page .portfolio-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portfolio-page .portfolio-filter-grid > .gallery-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.portfolio-page .portfolio-filter-grid > .gallery-item.portfolio-filter-hidden {
  display: none !important;
}

.portfolio-page .portfolio-filter-grid > .gallery-item .thumb,
.portfolio-page .portfolio-filter-grid > .gallery-item .gallery-details {
  width: 100%;
}
