/*
Theme Name: İsmayıllı Xəbərləri
Theme URI: https://ismayilli-xeberleri.info/v2/
Author: İsmayıllı Xəbərləri Redaksiyası
Author URI: https://ismayilli-xeberleri.info/v2/
Description: İsmayıllı rayonu və Azərbaycan üzrə gündəlik xəbərlər üçün təmiz, sürətli və mobil uyğun qəzet üslublu WordPress teması.
Version: 2.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ismayilli-xeberleri
Tags: news, newspaper, blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

:root {
  --ix-bg: #ffffff;
  --ix-surface: #f8f7f4;
  --ix-card-bg: #ffffff;
  --ix-subtle-bg: #f5f5f4;
  --ix-border: #e7e5e4;
  --ix-border-muted: #d6d3d1;
  --ix-border-strong: #1c1917;
  --ix-text: #1c1917;
  --ix-ink-strong: #0c0a09;
  --ix-prose: #44403c;
  --ix-muted: #57534e;
  --ix-red: #b91c1c;
  --ix-red-dark: #991b1b;
  --ix-red-badge: #b91c1c;
  --ix-btn-primary-bg: #1c1917;
  --ix-btn-primary-text: #ffffff;
  --ix-map-canvas-bg: #e5eef4;
  --font-display: 'Playfair Display', Georgia, Cambria, "Times New Roman", serif;
  --font-prose: 'Source Serif 4', Georgia, Cambria, "Times New Roman", serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ix-bg: #11100f;
  --ix-surface: #181614;
  --ix-card-bg: #1a1816;
  --ix-subtle-bg: #23201d;
  --ix-border: #2e2a27;
  --ix-border-muted: #44403c;
  --ix-border-strong: #e7e5e4;
  --ix-text: #e7e5e4;
  --ix-ink-strong: #fafaf9;
  --ix-prose: #d6d3d1;
  --ix-muted: #a8a29e;
  --ix-red: #f87171;
  --ix-red-dark: #ef4444;
  --ix-red-badge: #b91c1c;
  --ix-btn-primary-bg: #b91c1c;
  --ix-btn-primary-text: #ffffff;
  --ix-map-canvas-bg: #1a1816;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--ix-text);
  background: var(--ix-bg);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ix-bg);
  color: var(--ix-text);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ix-red);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ix-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ix-tabular {
  font-variant-numeric: tabular-nums;
}

/* Header & Masthead */
.ix-top-strip {
  background: var(--ix-surface);
  border-bottom: 1px solid var(--ix-border);
  font-size: 0.75rem;
  color: var(--ix-muted);
}

.ix-top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.ix-top-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.ix-top-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ix-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ix-theme-toggle:hover {
  border-color: var(--ix-border-strong);
  color: var(--ix-red);
}

.ix-top-datetime-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ix-weather-inline {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--ix-border-muted);
  color: var(--ix-text);
  font-weight: 500;
}

.ix-weather-inline.is-ready {
  display: inline-flex;
}

.ix-weather-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ix-top-links a:hover {
  color: var(--ix-text);
}

.ix-masthead {
  border-bottom: 1px solid var(--ix-border);
  padding: 1.25rem 0;
}

.ix-masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ix-brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ix-ink-strong);
  margin: 0;
  line-height: 1.1;
}

.ix-brand-title:hover {
  color: var(--ix-red-dark);
}

.ix-brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ix-muted);
  margin-top: 0.2rem;
}

.ix-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-surface);
  width: 100%;
  max-width: 340px;
}

.ix-search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: var(--ix-text);
}

.ix-search-form button {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: var(--ix-text);
  font-weight: 600;
  font-size: 0.8rem;
}

.ix-search-form button:hover {
  color: var(--ix-red);
}

/* Primary Nav */
.ix-nav-wrap {
  border-bottom: 1px solid var(--ix-border-muted);
  background: var(--ix-bg);
}

.ix-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.ix-nav-list > li > a {
  display: inline-block;
  padding: 0.7rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ix-text);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.ix-nav-list > li.current-menu-item > a,
.ix-nav-list > li.current-category-ancestor > a,
.ix-nav-list > li > a:hover {
  color: var(--ix-red);
  border-bottom-color: var(--ix-red);
}

.ix-mobile-toggle {
  display: none;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Breaking Ticker */
.ix-breaking-bar {
  background: var(--ix-surface);
  border-bottom: 1px solid var(--ix-border);
}

.ix-breaking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.ix-breaking-badge {
  background: var(--ix-red-badge);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ix-breaking-items {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.ix-breaking-item {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ix-breaking-item.is-active {
  display: block;
}

.ix-breaking-item:hover {
  color: var(--ix-red);
}

.ix-breaking-controls {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ix-breaking-controls button {
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Layout Grids */
.ix-main {
  padding: 2rem 0 3rem;
}

.ix-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ix-border);
  margin-bottom: 2.5rem;
}

.ix-hero-grid > * {
  min-width: 0;
}

.ix-lead-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ix-border);
  background: var(--ix-subtle-bg);
}

.ix-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ix-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ix-muted);
  margin-top: 0.9rem;
}

.ix-meta-cat {
  color: var(--ix-red);
  font-weight: 700;
}

.ix-lead-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0.5rem 0 0.75rem;
  color: var(--ix-ink-strong);
  text-wrap: balance;
}

.ix-lead-title a:hover {
  color: var(--ix-red);
}

.ix-lead-summary {
  font-size: 1rem;
  color: var(--ix-prose);
  line-height: 1.65;
  margin: 0;
}

.ix-latest-box {
  border: 1px solid var(--ix-border);
  background: var(--ix-surface);
  padding: 1.25rem;
}

.ix-section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ix-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ix-section-heading-red {
  border-bottom-color: var(--ix-red);
}

.ix-section-more {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ix-red);
}

.ix-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ix-latest-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ix-border);
}

.ix-latest-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ix-latest-list h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.ix-latest-list h3 a:hover {
  color: var(--ix-red);
}

.ix-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.ix-body-grid > * {
  min-width: 0;
  max-width: 100%;
}

.ix-cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ix-cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ix-card {
  border-bottom: 1px solid var(--ix-border);
  padding-bottom: 1.15rem;
}

.ix-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ix-border);
  background: var(--ix-subtle-bg);
}

.ix-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ix-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.45rem 0;
}

.ix-card-title a:hover {
  color: var(--ix-red);
}

.ix-card-excerpt {
  font-size: 0.875rem;
  color: var(--ix-muted);
  margin: 0;
  line-height: 1.55;
}

.ix-archive-row {
  display: flex;
  gap: 1.15rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--ix-border);
  align-items: flex-start;
}

.ix-archive-thumb {
  width: 180px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--ix-border);
}

.ix-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar */
.ix-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ix-widget {
  border: 1px solid var(--ix-border);
  background: var(--ix-card-bg);
  padding: 1.25rem;
}

.ix-widget-muted {
  background: var(--ix-surface);
}

.ix-widget-dark {
  background: #0c0a09;
  color: #ffffff;
  border-color: #2e2a27;
}

.ix-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ix-popular-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ix-border);
}

.ix-popular-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ix-rank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ix-red);
  line-height: 1;
  min-width: 1.25rem;
}

.ix-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
}

.ix-tag-cloud a {
  text-decoration: underline;
  text-decoration-color: var(--ix-border-muted);
  text-underline-offset: 4px;
}

.ix-tag-cloud a:hover {
  color: var(--ix-red);
}

.ix-ad-box {
  border: 1px dashed var(--ix-border-muted);
  background: var(--ix-card-bg);
  padding: 1.25rem;
  text-align: center;
}

/* Article Single Page */
.ix-breadcrumbs {
  font-size: 0.75rem;
  color: var(--ix-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ix-breadcrumbs a:hover {
  color: var(--ix-red);
}

.ix-single-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0.5rem 0 1rem;
  color: var(--ix-ink-strong);
  text-wrap: balance;
}

.ix-single-deck {
  font-family: var(--font-prose);
  font-size: 1.15rem;
  color: var(--ix-prose);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.ix-single-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ix-border);
  border-bottom: 1px solid var(--ix-border);
  font-size: 0.8rem;
  color: var(--ix-muted);
  margin-bottom: 1.5rem;
}

.ix-single-content {
  font-family: var(--font-prose);
  font-size: 1.1rem;
  line-height: 1.82;
  max-width: 100%;
  width: 100%;
  color: var(--ix-text);
}

.ix-single-content > p,
.ix-single-content > ul,
.ix-single-content > ol,
.ix-single-content > blockquote,
.ix-single-content > h2,
.ix-single-content > h3,
.ix-single-content > h4 {
  max-width: 68ch;
}

.ix-single-content p {
  margin: 0 0 1.25rem;
}

.ix-single-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 0.95;
  margin-right: 0.65rem;
  margin-top: 0.15rem;
}

/* Featured Image + Thumbnail Strip Stage */
.ix-media-stage {
  margin: 0 0 1.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ix-stage-main {
  position: relative;
  margin-bottom: 0;
  cursor: zoom-in;
  background: #1c1917;
}

.ix-stage-main img {
  cursor: zoom-in;
  transition: opacity 0.18s ease;
}

.ix-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 10, 9, 0.68);
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.15s ease;
}

.ix-stage-arrow:hover {
  background: var(--ix-red);
  border-color: var(--ix-red);
}

.ix-stage-prev {
  left: 0.6rem;
}

.ix-stage-next {
  right: 0.6rem;
}

.ix-stage-counter {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(12, 10, 9, 0.8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  z-index: 2;
}

.ix-stage-zoom-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(12, 10, 9, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  z-index: 2;
}

.ix-stage-zoom-btn:hover {
  background: var(--ix-red);
  border-color: var(--ix-red);
}

.ix-stage-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 0 0.2rem;
  scrollbar-width: thin;
}

.ix-thumb-btn {
  flex: 0 0 auto;
  width: 82px;
  height: 58px;
  padding: 0;
  border: 2px solid var(--ix-border-muted);
  background: var(--ix-subtle-bg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.ix-thumb-btn:hover {
  opacity: 1;
  border-color: var(--ix-muted);
}

.ix-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--ix-red);
}

.ix-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ix-stage-caption {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ix-muted);
  margin-top: 0.45rem;
}

@media (max-width: 640px) {
  .ix-thumb-btn {
    width: 68px;
    height: 48px;
  }
}

/* WordPress Article Images & Galleries (Gutenberg + Classic [gallery]) */
.ix-single-content figure.wp-block-image {
  margin: 1.5rem 0;
  max-width: 100%;
}

.ix-single-content > figure.wp-block-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ix-border);
}

.ix-single-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ix-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

.ix-single-content img {
  cursor: zoom-in;
}

.ix-single-content .wp-block-gallery,
.ix-single-content .wp-block-gallery .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  list-style: none !important;
}

.ix-single-content .wp-block-gallery:has(> .blocks-gallery-grid) {
  display: block !important;
}

.ix-single-content .wp-block-gallery.columns-1,
.ix-single-content .wp-block-gallery.columns-1 .blocks-gallery-grid {
  grid-template-columns: 1fr !important;
}

.ix-single-content .wp-block-gallery.columns-3,
.ix-single-content .wp-block-gallery.columns-3 .blocks-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ix-single-content .wp-block-gallery.columns-4,
.ix-single-content .wp-block-gallery.columns-5,
.ix-single-content .wp-block-gallery.columns-4 .blocks-gallery-grid,
.ix-single-content .wp-block-gallery.columns-5 .blocks-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ix-single-content .wp-block-gallery > figure.wp-block-image,
.ix-single-content .wp-block-gallery .blocks-gallery-item {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--ix-border);
  background: var(--ix-subtle-bg);
  position: relative;
}

.ix-single-content .wp-block-gallery > figure.wp-block-image a,
.ix-single-content .wp-block-gallery .blocks-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.ix-single-content .wp-block-gallery > figure.wp-block-image img,
.ix-single-content .wp-block-gallery .blocks-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  display: block;
  transition: transform 0.25s ease;
}

.ix-single-content .wp-block-gallery > figure.wp-block-image:hover img {
  transform: scale(1.02);
}

.ix-single-content .wp-block-gallery > figure.wp-block-image figcaption {
  position: relative;
  margin: 0;
  padding: 0.4rem 0.6rem;
  background: var(--ix-surface);
  border-top: 1px solid var(--ix-border);
}

/* Classic WordPress [gallery] Shortcode */
.ix-single-content .gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 1.5rem 0 !important;
  width: 100% !important;
}

.ix-single-content .gallery.gallery-columns-1 {
  grid-template-columns: 1fr !important;
}

.ix-single-content .gallery.gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ix-single-content .gallery.gallery-columns-4,
.ix-single-content .gallery.gallery-columns-5 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ix-single-content .gallery .gallery-item {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 1px solid var(--ix-border);
  background: var(--ix-subtle-bg);
  overflow: hidden;
}

.ix-single-content .gallery .gallery-icon,
.ix-single-content .gallery .gallery-icon a {
  display: block;
  width: 100%;
}

.ix-single-content .gallery .gallery-item img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0 !important;
  display: block;
  transition: transform 0.25s ease;
}

.ix-single-content .gallery .gallery-item:hover img {
  transform: scale(1.02);
}

.ix-single-content .gallery .gallery-caption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ix-muted);
  padding: 0.35rem 0.55rem;
  margin: 0;
  background: var(--ix-surface);
  border-top: 1px solid var(--ix-border);
}

@media (max-width: 640px) {
  .ix-single-content .wp-block-gallery.columns-3,
  .ix-single-content .wp-block-gallery.columns-4,
  .ix-single-content .wp-block-gallery.columns-5,
  .ix-single-content .gallery.gallery-columns-3,
  .ix-single-content .gallery.gallery-columns-4,
  .ix-single-content .gallery.gallery-columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Article Image Lightbox Modal */
.ix-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(12, 10, 9, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ix-lightbox.is-open {
  display: flex;
}

.ix-lightbox-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  font-size: 0.875rem;
  z-index: 2;
}

.ix-lightbox-close {
  background: var(--ix-red);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ix-lightbox-close:hover {
  background: #991b1b;
}

.ix-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 80vh;
}

.ix-lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.ix-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(28, 25, 23, 0.8);
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ix-lightbox-nav:hover {
  background: var(--ix-red);
  border-color: var(--ix-red);
}

.ix-lightbox-prev {
  left: 1rem;
}

.ix-lightbox-next {
  right: 1rem;
}

.ix-lightbox-caption {
  margin-top: 0.85rem;
  color: #e7e5e4;
  font-size: 0.875rem;
  text-align: center;
  max-width: 70ch;
}

.ix-share-bar {
  margin: 1.75rem 0;
  padding: 1rem;
  background: var(--ix-surface);
  border: 1px solid var(--ix-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ix-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ix-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  cursor: pointer;
}

.ix-btn:hover {
  border-color: var(--ix-border-strong);
}

.ix-btn-primary {
  background: var(--ix-btn-primary-bg);
  border-color: var(--ix-btn-primary-bg);
  color: var(--ix-btn-primary-text);
  cursor: pointer;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.ix-btn-primary:hover {
  background: var(--ix-red-dark);
  border-color: var(--ix-red-dark);
}

.ix-btn-red {
  background: var(--ix-red-badge);
  border-color: var(--ix-red-badge);
  color: #ffffff;
}

.ix-post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ix-border);
  border-bottom: 1px solid var(--ix-border);
  margin: 2rem 0;
}

.ix-pagination {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ix-pagination .page-numbers {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
}

.ix-pagination .page-numbers.current {
  background: var(--ix-btn-primary-bg);
  color: var(--ix-btn-primary-text);
  border-color: var(--ix-btn-primary-bg);
}

/* Comments */
.ix-comments-wrap {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ix-border-strong);
}

.ix-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ix-comment-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ix-border);
}

.ix-form-field {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  font-family: inherit;
  font-size: 0.9rem;
}

/* Footer */
.ix-footer {
  margin-top: 3rem;
  border-top: 2px solid var(--ix-border-strong);
  background: var(--ix-surface);
}

.ix-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
}

.ix-footer-bottom {
  background: var(--ix-bg);
  border-top: 1px solid var(--ix-border);
  padding: 1rem 0;
  font-size: 0.78rem;
  color: var(--ix-muted);
}

/* Homepage Layout Switcher & Extra Templates (Broadsheet & Wire) */
.ix-template-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--ix-border);
  background: var(--ix-surface);
  padding: 0.65rem 1rem;
  margin-bottom: 1.75rem;
}

.ix-template-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ix-template-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  display: inline-block;
}

.ix-template-btn.is-active {
  background: var(--ix-btn-primary-bg);
  color: var(--ix-btn-primary-text);
  border-color: var(--ix-btn-primary-bg);
}

.ix-broadsheet-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: center;
  padding-bottom: 1.75rem;
}

.ix-broadsheet-hero > * {
  min-width: 0;
}

.ix-broadsheet-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--ix-border);
  border-bottom: 1px solid var(--ix-border);
  margin-bottom: 2.5rem;
}

.ix-broadsheet-strip article {
  border-right: 1px solid var(--ix-border);
  padding-right: 1rem;
}

.ix-broadsheet-strip article:last-child {
  border-right: 0;
  padding-right: 0;
}

.ix-wire-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--ix-border);
  margin-bottom: 2.5rem;
}

.ix-wire-grid > * {
  min-width: 0;
}

/* Interactive Azerbaijan & Ismayilli Map Page */
.ix-map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ix-border-strong);
  margin-bottom: 1.5rem;
}

.ix-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.ix-map-grid > * {
  min-width: 0;
}

.ix-map-canvas-box {
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-subtle-bg);
  padding: 0.4rem;
}

.ix-leaflet-container {
  width: 100%;
  height: 580px;
  z-index: 0;
  background: var(--ix-map-canvas-bg);
}

@media (max-width: 640px) {
  .ix-leaflet-container {
    height: 430px;
  }
}

.ix-map-basemap-btn.is-active {
  background: var(--ix-red-badge);
  color: #ffffff;
  border-color: var(--ix-red-badge);
}

.ix-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--ix-border);
  background: var(--ix-surface);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.ix-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ix-map-filter-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  cursor: pointer;
}

.ix-map-filter-btn.is-active {
  background: var(--ix-btn-primary-bg);
  color: var(--ix-btn-primary-text);
  border-color: var(--ix-btn-primary-bg);
}

.ix-map-inspector {
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.ix-map-directory {
  border: 1px solid var(--ix-border);
  background: var(--ix-surface);
  padding: 1.25rem;
}

.ix-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ix-map-chip {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--ix-border-muted);
  background: var(--ix-card-bg);
  color: var(--ix-text);
  cursor: pointer;
}

.ix-map-chip.is-active {
  background: var(--ix-red-badge);
  color: #ffffff;
  border-color: var(--ix-red-badge);
}

.ix-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--ix-border-muted);
  font-size: 0.75rem;
  color: var(--ix-muted);
}

html[data-theme="dark"] .leaflet-control-zoom a,
html[data-theme="dark"] .leaflet-control-attribution {
  background: #1a1816;
  color: #e7e5e4;
  border-color: #44403c;
}

html[data-theme="dark"] .leaflet-control-zoom a:hover {
  background: #292524;
  color: #ffffff;
}

html[data-theme="dark"] .leaflet-tooltip {
  background: #181614;
  color: #f5f5f4;
  border-color: #44403c;
}

html[data-theme="dark"] .leaflet-tooltip-top::before {
  border-top-color: #181614;
}

@media (max-width: 960px) {
  .ix-hero-grid,
  .ix-body-grid,
  .ix-footer-grid,
  .ix-broadsheet-hero,
  .ix-wire-grid,
  .ix-map-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ix-broadsheet-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ix-broadsheet-strip article {
    border-right: 0;
    padding-right: 0;
  }

  .ix-cards-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ix-mobile-toggle {
    display: inline-block;
  }

  .ix-nav-wrap {
    display: none;
  }

  .ix-nav-wrap.is-open {
    display: block;
  }

  .ix-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }

  .ix-nav-list > li {
    width: 100%;
    border-bottom: 1px solid var(--ix-border);
  }

  .ix-cards-2col,
  .ix-cards-3col,
  .ix-broadsheet-strip,
  .ix-post-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ix-main {
    padding: 1.25rem 0 2rem;
  }

  .ix-mobile-hide,
  .ix-sidebar-wp-widgets,
  .ix-sidebar .widget_recent_entries,
  .ix-sidebar .widget_recent_comments,
  .ix-sidebar .wp-block-latest-posts,
  .ix-sidebar .wp-block-latest-comments {
    display: none !important;
  }

  .ix-archive-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
  }

  .ix-archive-row > div {
    flex: 1;
    min-width: 0;
  }

  .ix-archive-thumb {
    width: 108px;
    height: 82px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .ix-archive-row .ix-meta-line {
    font-size: 0.7rem;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
  }

  .ix-archive-row .ix-card-title {
    font-size: 0.94rem;
    line-height: 1.32;
    margin: 0.15rem 0 0;
  }

  .ix-archive-row .ix-card-excerpt {
    font-size: 0.78rem;
    line-height: 1.42;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ix-footer-grid {
    gap: 1.5rem;
    padding: 2rem 0;
  }
}
