/*
====================================
  Subrizi Studio - Vogue Style Minimal CSS
  Last reviewed: 2025-07-XX
  Canonical for all editorial/UX work
====================================
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000000;
  color: #ffffff;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Typography */
.subrizi-studio-logo {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 3rem 0 4rem 0;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.subrizi-studio-logo:hover {
  transform: scale(1.02);
  color: #f5f5f5;
}

h1,
.modal-article-title {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: #fff;
}

h2,
.article-title {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: #fff;
  color: #111;
  transform: scale(1.05);
}

/* Featured Cards */
.featured-section {
  margin: 6rem auto;
  padding: 0 2rem;
  max-width: 1400px;
  border: none;
}

.featured-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.featured-card {
  background: #000;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  display: block;
  height: 80vh;
  max-height: 800px;
  min-height: 600px;
  max-width: 100%;
  margin: 0 auto;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.featured-card:hover {
  transform: none;
  box-shadow: none;
  border-color: none;
}

.featured-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1);
}

.gallery-hero-image:hover,
.lightbox-trigger:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.gallery-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-hero-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.gallery-overlay-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-carousel {
  margin: 2rem 0;
  text-align: center;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  flex-wrap: nowrap;
  max-width: 1000px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.carousel-thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-more {
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #666;
}

/* Simple Lightbox Styles */
.simple-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: -60px;
  right: 0;
}

.lightbox-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-hero-image,
  .lightbox-trigger {
    max-width: 95vw !important;
    border-radius: 8px !important;
  }
  
  .gallery-overlay {
    opacity: 1;
    position: static;
    background: rgba(0,0,0,0.8);
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .carousel-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 1rem;
  }
  
  .carousel-thumbnail {
    flex-shrink: 0;
    width: 60px !important;
    height: 60px !important;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 1.5rem !important;
  }
  
  .gallery-overlay {
    padding: 0.8rem 1rem;
  }
  
  .gallery-overlay-title {
    font-size: 1rem !important;
  }
  
  .gallery-overlay-count {
    font-size: 0.8rem !important;
  }
  
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.featured-card:hover .featured-cover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 50%;
}

.featured-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.featured-excerpt {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  max-width: 70%;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.featured-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Category Navigation */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  width: 100%;
}

.category-btn {
  background: #111;
  color: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25em;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 1.1em 2.2em;
  margin: 0.7em 1.1em;
  box-shadow: 0 0 18px 0 rgba(0,0,0,0.18);
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.category-btn.selected, .category-btn.active, .category-btn[aria-pressed="true"] {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 32px 0 rgba(255,255,255,0.22), 0 0 0 4px rgba(255,215,0,0.18);
  text-shadow: 0 1px 8px #fff, 0 0 2px #ffd700;
}

.category-btn.selected:hover, .category-btn.selected:focus, .category-btn.selected:active,
.category-btn.active:hover, .category-btn.active:focus, .category-btn.active:active,
.category-btn[aria-pressed="true"]:hover, .category-btn[aria-pressed="true"]:focus, .category-btn[aria-pressed="true"]:active {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 38px 0 rgba(255,255,255,0.28), 0 0 0 6px rgba(255,215,0,0.22);
  text-shadow: 0 1px 12px #fff, 0 0 2px #ffd700;
}

.category-btn:not(.selected):not(.active):not([aria-pressed="true"]):hover,
.category-btn:not(.selected):not(.active):not([aria-pressed="true"]):focus {
  background: #181818;
  color: #fff;
  border: 2px solid #ffd700;
  box-shadow: 0 0 18px 0 rgba(255,215,0,0.10), 0 0 0 2px rgba(255,255,255,0.10);
  text-shadow: 0 1px 8px #fff;
}

.category-btn:active {
  filter: brightness(0.98) contrast(1.05);
}

.category-btn:focus, .category-btn:active {
  outline: none !important;
  box-shadow: 0 0 38px 0 rgba(255,255,255,0.28), 0 0 0 6px rgba(255,215,0,0.22) !important;
  border-color: #ffd700 !important;
}

.category-nav-item {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.category-nav-item:hover,
.category-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  font-family: "Inter", sans-serif;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Newsletter Signup */
.newsletter-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.3)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
}

.newsletter-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  font-family: "Inter", sans-serif;
}

.newsletter-button {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Social Sharing */
.social-share {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), #000);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Gallery Button Styling */
.modal-gallery-view-btn {
  background: #111;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 18px;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 1.2rem auto 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  min-width: 120px;
  max-width: 200px;
  justify-content: center;
}

.modal-gallery-view-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.gallery-icon {
  font-size: 1.2em;
  margin-right: 0.2em;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
}

.gallery-label {
  font-family: "Playfair Display", serif;
  font-size: 1em;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Modal Categories */
.modal-categories {
  display: flex;
  gap: 0.8rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-category-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .featured-card {
    height: 70vh;
    min-height: 500px;
    margin: 0 1rem;
  }
  
  .featured-content {
    padding: 3rem 2rem;
  }
  
  .featured-title {
    font-size: 2.5rem;
  }
  
  .featured-excerpt {
    font-size: 1.1rem;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .featured-card {
    height: 60vh;
    min-height: 400px;
  }

  .featured-content {
    padding: 2rem 1.5rem;
  }

  .featured-title {
    font-size: 2rem;
  }
  
  .featured-excerpt {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .featured-excerpt {
    font-size: 1.1rem;
  }

  .category-nav {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .category-nav-item {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .modal-article-body {
    padding: 0 1.5rem;
    margin: 1.5rem auto 3rem auto;
    max-width: 100%;
  }

  .modal-article-body p {
    margin-bottom: 2.8rem;
  }

  .modal-article-body h2 {
    margin: 3rem 0 1.5rem 0;
    font-size: 1.8rem;
  }

  .modal-article-body h3 {
    margin: 2.8rem 0 1.2rem 0;
    font-size: 1.4rem;
  }

  .newsletter-section {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }

  .newsletter-title {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    min-width: auto;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-gallery-view-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    margin: 1.5rem auto;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* High Energy, Aggressive Typography */
.aggressive-text {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chaotic-accent {
  color: #ff6b6b;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Premium Hover Effects */
.premium-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Luxury Border Effects */
.luxury-border {
  position: relative;
}

.luxury-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.3s;
}

.luxury-border:hover::before {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure modal content and article body are visible and not clipped */
.modal-content,
.modal-article-body {
  overflow: visible !important;
}

.lightbox-nav-label {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3em;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
@media (min-width: 900px) {
  .lightbox-nav-label {
    display: block;
  }
}

/* Modern Dime Credo link styling */
.credo-link {
  display: inline-block;
  color: #222;
  font-size: 1.3em;
  font-weight: 700;
  margin-left: 0.7em;
  text-decoration: none;
  border-radius: 50%;
  transition:
    background 0.18s,
    color 0.18s;
  padding: 0.08em 0.45em 0.08em 0.45em;
  vertical-align: middle;
}
.credo-link:hover,
.credo-link:focus {
  background: #f2f2f2;
  color: #0070f3;
  text-decoration: none;
  outline: none;
}

/* Fashion Ticker Styles */
.fashion-ticker-container {
  width: 100vw;
  background: #181818;
  color: #e0e0e0;
  font-family: "Playfair Display", serif;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: none;
  box-shadow: none;
  position: relative;
  z-index: 1000;
  min-height: 2.2em;
}
.fashion-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5em;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
  padding: 0.3em 0 0.3em 0.5em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.fashion-ticker-track span {
  display: inline-block;
  opacity: 0.92;
  transition: opacity 0.2s;
  font-size: 1em;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.13em;
  margin-right: 0.5em;
}
.fashion-ticker-track span:last-child {
  margin-right: 0;
}
.fashion-ticker-container:hover .fashion-ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .fashion-ticker-container {
    font-size: 0.92em;
    min-height: 1.7em;
  }
  .fashion-ticker-track {
    gap: 1.2em;
    padding-left: 0.2em;
  }
}

/* Vogue-style minimal editorial PDF Download Button */
.pdf-download-btn {
  background: none;
  color: #fff;
  border: none;
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  padding: 0.2em 0.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 1.5px solid transparent;
  margin: 0 0.5em 0 0;
  outline: none;
}
.pdf-download-btn:hover,
.pdf-download-btn:focus {
  color: #fff;
  border-bottom: 1.5px solid #fff;
  background: none;
  text-decoration: none;
}

/* Vogue-style minimal editorial Share Article Button */
.share-btn {
  background: none;
  color: #fff;
  border: none;
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  padding: 0.2em 0.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 1.5px solid transparent;
  margin: 0 0 0 0.5em;
  outline: none;
}
.share-btn:hover,
.share-btn:focus {
  color: #fff;
  border-bottom: 1.5px solid #fff;
  background: none;
  text-decoration: none;
}

/* Editorial Article Cover with Text Wrapping */
.article-cover-wrap {
  float: left;
  max-width: 340px;
  width: 50vw;
  margin: 0 2.2rem 1.2rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  display: block;
}
@media (max-width: 700px) {
  .article-cover-wrap {
    float: none;
    display: block;
    margin: 0 auto 1.2rem auto;
    max-width: 95vw;
  }
}

.collected-tag {
  background: rgba(0, 180, 120, 0.13);
  color: #b6ffe0;
  border: 1px solid rgba(0, 180, 120, 0.22);
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.book-card:hover .collected-tag {
  background: rgba(0, 180, 120, 0.22);
  color: #fff;
  border-color: #b6ffe0;
}
.book-btn, .category-btn {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  position: relative;
  text-align: center;
}
.book-btn:hover, .category-btn:hover, .book-btn.primary:hover {
  background: #0077cc;
  color: #fff;
  border-color: #b6ffe0;
  transform: none;
  box-shadow: none;
}

.category-menu-row {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2.5rem 0 2.5rem 0;
  display: flex;
  justify-content: center;
}

.category-nav-insert {
  width: 100%;
  background: rgba(20,20,20,0.98);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-nav-insert .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .category-nav-insert {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .category-nav-insert .category-grid {
    gap: 0.7rem 1.2rem;
  }
}

/* ===== FIXED GALLERY SYSTEM STYLES ===== */

/* Unified gallery styles - works for all templates */
.gallery-section {
  width: 100%;
  max-width: 100%;
  margin: 4rem auto;
}

.gallery-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: #222;
}

.gallery-hero-container {
  text-align: center;
  margin: 2rem 0;
}

.gallery-hero-wrapper {
  position: relative;
  display: inline-block;
  max-width: 700px;
}

.gallery-hero-image,
.lightbox-trigger {
  width: 100%;
  line-height: 1.22;
  margin-bottom: 1.2rem;
  color: #fff;
}

h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
}

.modal-article-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  letter-spacing: 0.04em;
}

.modal-article-body {
  font-size: 1.18rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  max-width: 780px;
  margin: 2rem auto 4rem auto;
  padding: 0 2.5rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-article-body p {
  margin-bottom: 3.2rem;
  text-align: left;
  hyphens: auto;
  word-wrap: break-word;
}

.modal-article-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4rem 0 2rem 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.modal-article-body h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 3.5rem 0 1.5rem 0;
  color: #fff;
}

.modal-article-body h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 2rem 0 0.8rem 0;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-article-body blockquote {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: #fff;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem 0 1.5rem 2.5rem;
  margin: 3rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 20px 20px 0;
  line-height: 1.6;
  position: relative;
}

.modal-article-body blockquote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: "Playfair Display", serif;
}

.modal-article-body ul,
.modal-article-body ol {
  margin: 2rem 0 2rem 2rem;
  padding-left: 0;
}

.modal-article-body li {
  margin-bottom: 1rem;
  line-height: 1.7;
  padding-left: 0.5rem;
}

.modal-article-body ul li {
  list-style-type: none;
  position: relative;
}

.modal-article-body ul li::before {
  content: "•";
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.modal-article-body ol {
  counter-reset: item;
}

.modal-article-body ol li {
  counter-increment: item;
  list-style-type: none;
  position: relative;
}

.modal-article-body ol li::before {
  content: counter(item) ".";
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  position: absolute;
  left: -2rem;
  min-width: 1.5rem;
}

.modal-article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 3rem 0;
}

.modal-article-body strong {
  font-weight: 600;
  color: #fff;
}

.modal-article-body em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.modal-article-body a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: all 0.3s;
}

.modal-article-body a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

/* Tech Writing Specific Styles */
.modal-article-body .tech-content {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
}

.modal-article-body .tech-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  color: #fff;
}

.modal-article-body .tech-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Personal Story Styles */
.modal-article-body .personal-story {
  font-size: 1.2rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.98);
}

.modal-article-body .personal-story .intro {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

/* Current Events Styles */
.modal-article-body .current-events {
  font-size: 1.15rem;
  line-height: 1.8;
}

.modal-article-body .current-events .headline {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.modal-article-body .current-events .subheadline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Village Voice Style Aggressive Writing */
.modal-article-body .aggressive-writing {
  font-weight: 500;
  line-height: 1.75;
}

.modal-article-body .aggressive-writing .punch-line {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.1em;
}

.modal-article-body .aggressive-writing .rant {
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}

/* Enhanced Mobile Typography */
@media (max-width: 768px) {
  .modal-article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .modal-article-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.2rem 0;
  }

  .modal-article-body h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem 0;
  }

  .modal-article-body h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.6rem 0;
  }

  .modal-article-body blockquote {
    font-size: 1.2rem;
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
  }

  .modal-article-body blockquote::before {
    font-size: 3rem;
    top: -0.3rem;
    left: 0.5rem;
  }

  .modal-article-body ul,
  .modal-article-body ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
  }

  .modal-article-body ul li::before {
    left: -1.2rem;
  }

  .modal-article-body ol li::before {
    left: -1.8rem;
  }

  .modal-article-body .personal-story {
    font-size: 1.1rem;
  }

  .modal-article-body .personal-story .intro {
    font-size: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .modal-article-body .current-events .headline {
    font-size: 1.4rem;
  }

  .modal-article-body .tech-content pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* Large Screen Typography */
@media (min-width: 1200px) {
  .modal-article-body {
    font-size: 1.22rem;
    line-height: 1.85;
    max-width: 800px;
  }

  .modal-article-body h2 {
    font-size: 2.2rem;
  }

  .modal-article-body h3 {
    font-size: 1.6rem;
  }

  .modal-article-body blockquote {
    font-size: 1.5rem;
    padding: 2rem 0 2rem 3rem;
  }
}

/* Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 4rem auto 0;
  max-width: 1200px;
  padding: 0 2rem;
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
}

/* Article Cards */
.article-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.005)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.article-card:hover::before {
  opacity: 1;
}

.article-content {
  padding: 2rem;
}

.article-excerpt,
.modal-article-body {
  text-transform: none !important;
  font-family: inherit !important;
}

.article-excerpt {
  color: #ccc;
  font-size: 1.08rem;
  margin: 1.1rem 0 1.2rem 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.5em;
}

.article-category {
  color: #ffe082;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.article-meta-row {
  margin-bottom: 0.2rem;
}

.article-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-cover {
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
  background: #000;
  border-radius: 0;
  transition: transform 0.4s ease;
  filter: grayscale(20%);
  margin-bottom: 0;
}

.article-card:hover .article-cover {
  transform: scale(1.02);
  filter: grayscale(0%);
}

/* Professional Article Cover Styling */
.article-cover-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
}

.article-card:hover .article-cover-image {
  filter: brightness(1.05);
  transform: scale(1.02);
}

.article-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  height: 60px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-cover-overlay {
  opacity: 1;
}

.article-cover-fallback {
  width: 100%;
  height: 350px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  color: #444;
  font-weight: 600;
}

.article-cover-fallback span {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Article Content Styling */
.article-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0,0,0,0.8);
}

.article-meta {
  margin-bottom: 0.75rem;
}

.article-category {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
  opacity: 0.9;
}

.article-title {
  margin: 0 0 0.75rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card:hover .article-title {
  color: #ffffff;
}

.article-excerpt {
  margin: 0 0 1.5rem 0;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.article-author {
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.article-date {
  color: #666;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.8;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Loader */
#loader {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin: 4rem 0;
  font-size: 1.2rem;
  font-weight: 300;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 4rem 0;
}

@media (min-width: 768px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1200px) {
  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition:
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.video-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.18);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  object-position: center;
  background: #111;
  display: block;
  filter: grayscale(15%) brightness(0.95);
  transition: filter 0.3s;
}

.video-card:hover .video-thumb {
  filter: grayscale(0%) brightness(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  padding: 1.5rem;
  pointer-events: none;
}

.video-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .subrizi-studio-logo {
    margin: 2rem 0 3rem 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .articles-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 1.5rem;
  }

  .article-cover {
    height: 280px;
  }

  .article-title {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .article-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .video-gallery {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .video-overlay {
    padding: 1rem;
  }

  .video-title {
    font-size: 1rem;
  }

  .category-nav {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
  }
}

/* Modal Video Embed */
.modal-video-embed {
  width: 100%;
  max-width: 960px;
  margin: 2em auto;
  display: flex;
  justify-content: center;
}

.modal-video-embed iframe {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  height: auto;
  min-height: 320px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  background: #000;
}

@media (max-width: 768px) {
  .modal-video-embed iframe {
    min-height: 200px;
    max-width: 100vw;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Modal Gallery (moved from index.html) */
.modal-gallery {
  margin: 2rem 0;
  text-align: center;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.modal-hero {
  margin: 2rem 0;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.modal-hero:hover {
  transform: scale(1.02);
}

.modal-hero::after {
  content: "View Gallery";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-hero:hover::after {
  opacity: 1;
}

.modal-gallery-img {
  max-width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: center;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.modal-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  filter: brightness(1.05) contrast(1.1);
}

.modal-hero-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Vogue-Style Video Embed */
.video-embed {
  width: 100%;
  max-width: 960px;
  margin: 2.5em auto;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
  background: #111;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 54vw;
  max-width: 960px;
  max-height: 540px;
  min-height: 220px;
  border-radius: 18px;
  background: #111;
  box-shadow: none;
  display: block;
}
@media (max-width: 768px) {
  .video-embed iframe,
  .video-embed video {
    height: 48vw;
    min-height: 120px;
    max-height: 320px;
    border-radius: 12px;
  }
  .video-embed {
    border-radius: 12px;
  }
}

/* Premium Modal Styling */
#article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
}

.article-title {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.5em;
  word-break: break-word;
}
@media (max-width: 768px) {
  .article-title {
    font-size: 1.3rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    max-height: 2.6em;
  }
}

/* Gallery hover effects */
.gallery-clickable-image {
  transition: transform 0.3s ease !important;
}

.gallery-clickable-image:hover {
  transform: scale(1.02) !important;
}

/* Gallery carousel styles */
.gallery-thumbnails-container {
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails-container::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbnails-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.gallery-thumbnails-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.gallery-thumbnails-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail:hover {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* Mobile responsive gallery */
@media (max-width: 768px) {
  .gallery-main-image {
    max-width: 100% !important;
    border-radius: 8px !important;
  }
  
  .gallery-thumbnail {
    width: 80px !important;
    height: 120px !important;
    object-position: top !important;
  }
  
  .gallery-thumbnails {
    gap: 0.5rem !important;
  }
}

/* Gallery loading and performance optimizations */
.gallery-thumbnail {
  background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
  background-size: 20px 20px;
  will-change: transform, opacity;
}

.gallery-thumbnail[loading="lazy"] {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.gallery-thumbnail:not([loading="lazy"]) {
  opacity: 1;
}

.lightbox-image {
  transition: opacity 0.2s ease;
}

/* Preload optimization */
.gallery-main-image,
.gallery-thumbnail {
  image-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
}