/*--------------------------------------
  TEMPLATE: Gallery (Interactive)
  Scoped to .fsc-layout-interactive to prevent conflicts
--------------------------------------*/

.fsc-layout-interactive.template-gallery {
  background: #e3e3e3;
  border-radius: 20px;
  padding: 25px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/*--------------------------------------
  Gallery Header Redesign
--------------------------------------*/
.fsc-layout-interactive .font-showcase-gallery-header-wrapper {
    margin-bottom: 30px;
}

.fsc-layout-interactive .gallery-header-top {
    text-align: center;
    margin-bottom: 20px;
}

.fsc-layout-interactive .gallery-main-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.fsc-layout-interactive .gallery-sub-title {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

.fsc-layout-interactive .gallery-header-content-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Left Column: Controls + Text Input */
.fsc-layout-interactive .gallery-header-controls-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    height: 250px;
    box-sizing: border-box;
}

.fsc-layout-interactive .gallery-controls-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fsc-layout-interactive .gallery-control-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.fsc-layout-interactive .gallery-control-item label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 100%;
}

/* Standardized Control Wrappers */
.fsc-layout-interactive .gallery-control-wrapper {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.fsc-layout-interactive .gallery-size-wrapper input[type=range] {
    width: 150px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.fsc-layout-interactive .gallery-size-wrapper input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
}

.fsc-layout-interactive .gallery-color-picker-wrapper {
    display: flex;
    gap: 5px;
    position: relative;
    padding: 0.5rem;
    justify-content: center;
}

.fsc-layout-interactive .gallery-color-group {
    display: flex;
    gap: 5px;
}

.fsc-layout-interactive .gallery-color-input {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border: 1px solid #ddd !important;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    position: static;
    overflow: hidden;
    line-height: 1;
}

.fsc-layout-interactive .gallery-color-input::-webkit-color-swatch-wrapper {
    padding: 0 !important;
    border: none !important;
}

.fsc-layout-interactive .gallery-color-input::-webkit-color-swatch {
    border: none !important;
    border-radius: 4px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fsc-layout-interactive .gallery-color-input::-moz-color-swatch {
    border: none !important;
    border-radius: 4px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fsc-layout-interactive .gallery-control-item.reset-control {
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

/* Reset Button */
.fsc-layout-interactive .gallery-reset-btn {
    background: #f8f9fa;
    border: 1px solid #e2e6ea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fsc-layout-interactive .gallery-reset-btn:hover {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
    transform: rotate(-90deg);
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.15);
}

.fsc-layout-interactive .gallery-text-input-area {
    flex-grow: 1;
}

.fsc-layout-interactive .gallery-textarea-field {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-family: inherit;
    font-size: 16px;
}

/* Right Column: Auto Scrolling Gallery */
.fsc-layout-interactive .gallery-header-gallery-area {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    height: 250px;
}

/* Navigation Buttons */
.fsc-layout-interactive .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsc-layout-interactive .gallery-nav-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.fsc-layout-interactive .gallery-nav-btn:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
    color: #fff;
}

.fsc-layout-interactive .gallery-nav-btn.prev {
    left: 10px;
}

.fsc-layout-interactive .gallery-nav-btn.next {
    right: 10px;
}

/* Slider */
.fsc-layout-interactive .gallery-slider-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fsc-layout-interactive .gallery-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.fsc-layout-interactive .gallery-slider-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fsc-layout-interactive .gallery-slider-item.active {
    opacity: 1;
}

.fsc-layout-interactive .gallery-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    cursor: pointer;
}

.fsc-layout-interactive .gallery-slider-item.placeholder span {
    font-size: 18px;
    font-weight: bold;
    color: #ccc;
}

/* Slider Dots */
.fsc-layout-interactive .gallery-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.fsc-layout-interactive .gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fsc-layout-interactive .gallery-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.fsc-layout-interactive .gallery-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .fsc-layout-interactive .gallery-header-content-row {
        flex-direction: column;
    }
}

/*--------------------------------------
  Font Cards (Interactive)
--------------------------------------*/
.fsc-layout-interactive .font-showcase-font-item.gallery-item.font-container {
  background: #fff;
  border-radius: 20px;
  padding: 8px 17px 4px 20px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, z-index 0.1s;
  border: 1px solid #ededed;
  position: relative;
  z-index: 1;
}

.fsc-layout-interactive .font-showcase-font-item.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.fsc-layout-interactive .font-showcase-font-item.gallery-item.font-item-active-menu {
  z-index: 1000 !important;
  position: relative;
}

/* Font Names */
.fsc-layout-interactive .font-names {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1px;
  color: #999;
}

.fsc-layout-interactive .font-names h2 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #000;
}

.fsc-layout-interactive .font-name {
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
}

.fsc-layout-interactive .designer-name {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}

.fsc-layout-interactive .designer-name a {
  color: #999;
  text-decoration: none;
}

.fsc-layout-interactive .font-info-t {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fsc-layout-interactive .text-bold {
  font-weight: bold;
}

/* Font Row */
.fsc-layout-interactive .font-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
  min-height: 80px;
  position: relative;
}

.fsc-layout-interactive .font-preview-container {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
}

/* Explicitly disable the ::after pseudo-element from style.css */
.fsc-layout-interactive .font-showcase-font-preview::after {
  content: none !important;
  display: none !important;
}

.fsc-layout-interactive .font-showcase-font-preview {
  position: relative;
  background: transparent;
  border: none !important;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px;
  min-height: 60px;
  font-size: 48px;
  font-weight: 600;
  margin: 2px 0;
  text-align: left;
  color: #000;
  line-height: 1.2;
  width: 100%;
}

/* Action Buttons */
.fsc-layout-interactive .action-buttons {
  display: flex;
  gap: 3px;
  margin-left: 5px;
}

.fsc-layout-interactive .button.circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  padding: 0;
}

.fsc-layout-interactive .button.circle:hover {
  transform: scale(1.1);
}

.fsc-layout-interactive .button.circle.add-btn {
  background: #e0e0e0;
  color: #555;
}

.fsc-layout-interactive .button.circle.gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
}

/* Metadata Pills */
.fsc-layout-interactive .font-showcase-font-item.gallery-item .font-showcase-font-metadata {
    display: flex;
    gap: 5px;
    margin-right: auto;
}

.fsc-layout-interactive .font-showcase-font-item.gallery-item .font-showcase-metadata-pill {
    background: #999 !important;
    color: #fff !important;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* Footer Info */
.fsc-layout-interactive .font-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #999;
  margin-top: 0px;
}

.fsc-layout-interactive .buffer1-right {
  margin-right: 5px;
}

/* More Menu Dropdown */
.fsc-layout-interactive .font-showcase-more-menu-wrapper {
    position: relative;
    display: inline-block;
}

.fsc-layout-interactive .font-showcase-more-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 100;
    display: none;
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.fsc-layout-interactive .font-showcase-more-dropdown.show {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.fsc-layout-interactive .more-menu-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.fsc-layout-interactive .more-menu-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.fsc-layout-interactive .more-menu-item.buy-btn {
    font-weight: bold;
    color: #2563EB; /* Blue highlight */
    text-decoration: none;
}

.fsc-layout-interactive .more-menu-item.buy-btn:hover {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

/* Shared / Global elements that might need specific targeting */
.fsc-layout-interactive .font-showcase-char-cell {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.fsc-layout-interactive .font-showcase-char-cell:hover {
    background-color: #e9ecef !important;
    transform: scale(1.1);
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.fsc-layout-interactive .font-showcase-char-cell:active {
    transform: scale(0.95);
}

/* Global Feedback (Toast) - Keep Global as it might be appended to body */
.copy-feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

.font-showcase-feedback {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    animation: fsFeedbackSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.font-showcase-feedback-success {
    border-bottom: 2px solid #4CAF50;
}

.font-showcase-feedback-error {
    border-bottom: 2px solid #ff4d4f;
}

@keyframes fsFeedbackSlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/*--------------------------------------
  TEMPLATE: Editorial (Gallery System)
  Exceptional Magazine/Print Design - UI/UX Refined
--------------------------------------*/
.fsc-layout-interactive.template-editorial {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: 'Playfair Display', 'Times New Roman', serif !important;
    border: none !important;
    color: #1a1a1a !important;
}

/* Header: Open and Airy */
.fsc-layout-interactive.template-editorial .font-showcase-gallery-header-wrapper {
    margin-bottom: 60px; /* Increased whitespace */
    background: #fff;
    padding: 30px 0;
    border-bottom: 2px solid #1a1a1a; /* Thicker anchor line */
}

.fsc-layout-interactive.template-editorial .gallery-header-top {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 6px solid #1a1a1a; /* Stronger visual weight */
    padding-bottom: 20px;
    display: inline-block; /* Hug content */
    width: 100%;
}

.fsc-layout-interactive.template-editorial .gallery-main-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 4rem !important; /* Larger headline */
    text-transform: uppercase;
    letter-spacing: -1.5px;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    line-height: 0.95;
    margin: 0;
}

.fsc-layout-interactive.template-editorial .gallery-sub-title {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    margin-top: 15px;
    font-weight: 400;
}

/* Layout: Split Screen with Dominant Gallery */
.fsc-layout-interactive.template-editorial .gallery-header-content-row {
    flex-direction: column;
    gap: 0;
    border: 1px solid #1a1a1a;
}

/* Gallery Area: Hero Image Style */
.fsc-layout-interactive.template-editorial .gallery-header-gallery-area {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 450px; /* Taller hero area */
    background: #f4f4f4;
    position: relative;
}

.fsc-layout-interactive.template-editorial .gallery-header-gallery-area::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 10px solid #fff; /* Internal frame effect */
    pointer-events: none;
    z-index: 2;
}

.fsc-layout-interactive.template-editorial .gallery-slider-item img {
    filter: grayscale(100%) contrast(1.1); /* Slightly higher contrast grayscale */
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fsc-layout-interactive.template-editorial .gallery-slider-item:hover img {
    filter: grayscale(0%) contrast(1);
}

/* Controls: Minimal Strip */
.fsc-layout-interactive.template-editorial .gallery-header-controls-area {
    width: 100%;
    border: none !important;
    border-top: 1px solid #1a1a1a !important;
    background: #fff !important;
    padding: 25px 30px !important;
    border-radius: 0 !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.fsc-layout-interactive.template-editorial .gallery-controls-top-row {
    flex: 1;
    gap: 30px;
    justify-content: flex-start;
}

/* Elegant Inputs */
.fsc-layout-interactive.template-editorial .gallery-control-item label {
    font-family: 'Inter', sans-serif; /* Contrast sans-serif for UI labels */
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600 !important;
    margin-bottom: 8px;
}

.fsc-layout-interactive.template-editorial .gallery-text-input-area {
    flex: 1;
    max-width: 350px;
}

.fsc-layout-interactive.template-editorial .gallery-textarea-field {
    height: 40px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Playfair Display', serif; /* Match headline */
    font-style: italic;
    font-size: 1.2rem;
    padding: 5px 0;
    background: transparent;
    transition: border-color 0.3s;
}

.fsc-layout-interactive.template-editorial .gallery-textarea-field:focus {
    border-bottom-color: #1a1a1a;
    outline: none;
    box-shadow: none;
}

/* Custom Slider for Editorial */
.fsc-layout-interactive.template-editorial .gallery-size-wrapper input[type=range] {
    height: 2px;
    background: #e0e0e0;
}

.fsc-layout-interactive.template-editorial .gallery-size-wrapper input[type=range]::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 0; /* Square thumb */
    border: none;
}

/* Fonts List: Minimal List Style */
.fsc-layout-interactive.template-editorial .font-showcase-fonts {
    display: block;
    margin-top: 60px;
}

.fsc-layout-interactive.template-editorial .font-showcase-font-item.gallery-item.font-container {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 40px 0 !important;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fsc-layout-interactive.template-editorial .font-showcase-font-item.gallery-item:hover {
    transform: translateX(15px) !important;
    border-bottom-color: #1a1a1a !important;
}

.fsc-layout-interactive.template-editorial .font-names {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.fsc-layout-interactive.template-editorial .font-name {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a !important;
}

.fsc-layout-interactive.template-editorial .designer-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.fsc-layout-interactive.template-editorial .font-showcase-font-preview {
    font-size: 3.5rem;
    color: #1a1a1a;
    line-height: 1.1;
}

/* Buttons */
.fsc-layout-interactive.template-editorial .button.circle {
    border-radius: 0 !important; /* Square buttons */
    border: 1px solid #1a1a1a !important;
    background: transparent !important;
    color: #1a1a1a !important;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
}

.fsc-layout-interactive.template-editorial .button.circle:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    transform: none !important;
}

.fsc-layout-interactive.template-editorial .gallery-slider-dot {
    background: #1a1a1a !important;
    border-radius: 0 !important;
    width: 8px !important;
    height: 8px !important;
}

/* ==================================================
   TEMPLATE: EDITORIAL DARK - LUXURY NOIR
================================================== */
.fsc-layout-interactive.template-editorial-dark {
    background: #121212 !important; /* Richer Black */
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: 'Playfair Display', 'Times New Roman', serif !important;
    border: none !important;
    color: #f0f0f0 !important;
}

/* Header */
.fsc-layout-interactive.template-editorial-dark .font-showcase-gallery-header-wrapper {
    margin-bottom: 60px;
    background: #121212;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.fsc-layout-interactive.template-editorial-dark .gallery-header-top {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 4px solid #d4af37; /* Gold Accent */
    padding-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.fsc-layout-interactive.template-editorial-dark .gallery-main-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 4rem !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 0.95;
    margin: 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.fsc-layout-interactive.template-editorial-dark .gallery-sub-title {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #888;
    margin-top: 15px;
}

/* Layout */
.fsc-layout-interactive.template-editorial-dark .gallery-header-content-row {
    flex-direction: column;
    gap: 0;
    border: 1px solid #333;
}

/* Gallery Area */
.fsc-layout-interactive.template-editorial-dark .gallery-header-gallery-area {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 450px;
    background: #000;
}

.fsc-layout-interactive.template-editorial-dark .gallery-slider-item img {
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.6s ease, transform 0.6s ease;
    opacity: 0.8;
}

.fsc-layout-interactive.template-editorial-dark .gallery-slider-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.02);
}

/* Controls */
.fsc-layout-interactive.template-editorial-dark .gallery-header-controls-area {
    width: 100%;
    border: none !important;
    border-top: 1px solid #333 !important;
    background: #1a1a1a !important;
    padding: 25px 30px !important;
    border-radius: 0 !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.fsc-layout-interactive.template-editorial-dark .gallery-controls-top-row {
    flex: 1;
    gap: 30px;
    justify-content: flex-start;
}

/* Inputs */
.fsc-layout-interactive.template-editorial-dark .gallery-control-item label {
    font-family: 'Inter', sans-serif;
    color: #888 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.fsc-layout-interactive.template-editorial-dark .gallery-text-input-area {
    flex: 1;
    max-width: 350px;
}

.fsc-layout-interactive.template-editorial-dark .gallery-textarea-field {
    height: 40px;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.2rem;
    padding: 5px 0;
    background: transparent;
    color: #fff;
    transition: border-color 0.3s;
}

.fsc-layout-interactive.template-editorial-dark .gallery-textarea-field:focus {
    border-bottom-color: #d4af37; /* Gold focus */
    outline: none;
}

.fsc-layout-interactive.template-editorial-dark .gallery-textarea-field::placeholder {
    color: #444;
}

/* Custom Slider Dark */
.fsc-layout-interactive.template-editorial-dark .gallery-size-wrapper input[type=range] {
    background: #333;
}

.fsc-layout-interactive.template-editorial-dark .gallery-size-wrapper input[type=range]::-webkit-slider-thumb {
    background: #d4af37; /* Gold thumb */
    border-radius: 50%;
}

/* Fonts List */
.fsc-layout-interactive.template-editorial-dark .font-showcase-fonts {
    display: block;
    margin-top: 60px;
}

.fsc-layout-interactive.template-editorial-dark .font-showcase-font-item.gallery-item.font-container {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 40px 0 !important;
    margin: 0 !important;
    transition: all 0.4s ease;
}

.fsc-layout-interactive.template-editorial-dark .font-showcase-font-item.gallery-item:hover {
    transform: translateX(15px) !important;
    border-bottom-color: #d4af37 !important; /* Gold hover */
}

.fsc-layout-interactive.template-editorial-dark .font-names {
    margin-bottom: 15px;
}

.fsc-layout-interactive.template-editorial-dark .font-name {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
}

.fsc-layout-interactive.template-editorial-dark .designer-name {
    color: #666;
}

.fsc-layout-interactive.template-editorial-dark .font-showcase-font-preview {
    font-size: 3.5rem;
    color: #fff;
}

.fsc-layout-interactive.template-editorial-dark .button.circle {
    border-radius: 0 !important;
    border: 1px solid #444 !important;
    background: transparent !important;
    color: #fff !important;
    transition: all 0.3s;
}

.fsc-layout-interactive.template-editorial-dark .button.circle:hover {
    background: #d4af37 !important; /* Gold hover */
    color: #000 !important;
    border-color: #d4af37 !important;
}

/* ==================================================
   TEMPLATE: EDITORIAL MODERN - CLEAN TECH
================================================== */
.fsc-layout-interactive.template-editorial-modern {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-family: 'Inter', 'Helvetica Neue', sans-serif !important;
    border: 1px solid #f0f0f0 !important;
    color: #111 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03); /* Softer, deeper shadow */
}

/* Header */
.fsc-layout-interactive.template-editorial-modern .font-showcase-gallery-header-wrapper {
    margin-bottom: 50px;
    background: #fff;
    padding: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.fsc-layout-interactive.template-editorial-modern .gallery-header-top {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
}

.fsc-layout-interactive.template-editorial-modern .gallery-main-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.1;
    margin: 0 0 15px 0;
    letter-spacing: -0.03em; /* Tight tracking for modern look */
}

.fsc-layout-interactive.template-editorial-modern .gallery-sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-top: 0;
    font-weight: 300;
}

/* Layout */
.fsc-layout-interactive.template-editorial-modern .gallery-header-content-row {
    flex-direction: column;
    gap: 0;
    border: none;
    background: #fcfcfc;
}

/* Gallery Area */
.fsc-layout-interactive.template-editorial-modern .gallery-header-gallery-area {
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 500px;
}

.fsc-layout-interactive.template-editorial-modern .gallery-slider-item img {
    filter: none;
    object-fit: cover;
}

/* Controls */
.fsc-layout-interactive.template-editorial-modern .gallery-header-controls-area {
    width: 100%;
    border: none !important;
    background: #fff !important;
    padding: 25px 40px !important;
    border-radius: 0 !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.02);
}

.fsc-layout-interactive.template-editorial-modern .gallery-controls-top-row {
    flex: 1;
    gap: 25px;
    justify-content: center;
    max-width: 900px;
}

.fsc-layout-interactive.template-editorial-modern .gallery-control-item label {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #111 !important;
}

.fsc-layout-interactive.template-editorial-modern .gallery-text-input-area {
    flex: 1;
    max-width: 450px;
}

.fsc-layout-interactive.template-editorial-modern .gallery-textarea-field {
    height: 50px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0 20px;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fsc-layout-interactive.template-editorial-modern .gallery-textarea-field:focus {
    background: #fff;
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* Fonts List */
.fsc-layout-interactive.template-editorial-modern .font-showcase-fonts {
    display: block;
    margin-top: 50px;
    padding: 0 40px 40px;
}

.fsc-layout-interactive.template-editorial-modern .font-showcase-font-item.gallery-item.font-container {
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fsc-layout-interactive.template-editorial-modern .font-showcase-font-item.gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    border-color: #e0e0e0 !important;
}

.fsc-layout-interactive.template-editorial-modern .font-names {
    margin-bottom: 20px;
}

.fsc-layout-interactive.template-editorial-modern .font-name {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #111 !important;
}

.fsc-layout-interactive.template-editorial-modern .designer-name {
    font-size: 0.9rem;
    color: #666;
}

.fsc-layout-interactive.template-editorial-modern .font-showcase-font-preview {
    font-size: 3.5rem;
    color: #111;
}

.fsc-layout-interactive.template-editorial-modern .button.circle {
    border-radius: 8px !important;
    border: none !important;
    background: #f5f5f5 !important;
    color: #111 !important;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
}

.fsc-layout-interactive.template-editorial-modern .button.circle:hover {
    background: #111 !important;
    color: #fff !important;
    transform: scale(1.05);
}

/* ==================================================
   RESPONSIVE STYLES FOR EDITORIAL TEMPLATES
================================================== */
@media (max-width: 768px) {
    /* Editorial (Base), Dark, and Modern Common Mobile Styles */
    
    .fsc-layout-interactive.template-editorial .gallery-header-controls-area,
    .fsc-layout-interactive.template-editorial-dark .gallery-header-controls-area,
    .fsc-layout-interactive.template-editorial-modern .gallery-header-controls-area {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px !important;
        gap: 20px;
        height: auto !important;
    }

    .fsc-layout-interactive.template-editorial .gallery-controls-top-row,
    .fsc-layout-interactive.template-editorial-dark .gallery-controls-top-row,
    .fsc-layout-interactive.template-editorial-modern .gallery-controls-top-row {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .fsc-layout-interactive.template-editorial .gallery-text-input-area,
    .fsc-layout-interactive.template-editorial-dark .gallery-text-input-area,
    .fsc-layout-interactive.template-editorial-modern .gallery-text-input-area {
        width: 100%;
        max-width: 100%;
    }

    /* Editorial Modern Specific Mobile Fixes */
    .fsc-layout-interactive.template-editorial-modern .font-showcase-fonts {
        padding: 0 15px 15px !important;
    }

    .fsc-layout-interactive.template-editorial-modern .gallery-main-title {
        font-size: 2rem !important;
    }
    
    .fsc-layout-interactive.template-editorial-dark .gallery-main-title {
        font-size: 2.5rem !important;
    }

    .fsc-layout-interactive.template-editorial .gallery-main-title {
        font-size: 2.5rem !important;
    }
    
    /* Ensure gallery area has reasonable height on mobile */
    .fsc-layout-interactive.template-editorial .gallery-header-gallery-area,
    .fsc-layout-interactive.template-editorial-dark .gallery-header-gallery-area,
    .fsc-layout-interactive.template-editorial-modern .gallery-header-gallery-area {
        min-height: 250px !important;
    }
}

/*--------------------------------------
  TEMPLATE: Studio (Gallery System)
  Exceptional Dark Interactive Grid
--------------------------------------*/
.fsc-layout-interactive.template-studio {
    background: #0a0a0a !important;
    color: #e0e0e0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
}

/* Background Effect */
.fsc-layout-interactive.template-studio::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

/* Header */
.fsc-layout-interactive.template-studio .gallery-main-title {
    color: #fff !important;
    font-weight: 200 !important;
    letter-spacing: -0.5px;
    font-size: 2rem;
}

.fsc-layout-interactive.template-studio .gallery-sub-title {
    color: #888;
    font-weight: 300;
}

/* Controls: Glassmorphism Floating Panel */
.fsc-layout-interactive.template-studio .gallery-header-controls-area {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #fff;
}

.fsc-layout-interactive.template-studio .gallery-control-item label {
    color: #aaa !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsc-layout-interactive.template-studio .gallery-size-wrapper input[type=range] {
    background: #333 !important;
}

.fsc-layout-interactive.template-studio .gallery-size-wrapper input[type=range]::-webkit-slider-thumb {
    background: #3b82f6 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.fsc-layout-interactive.template-studio .gallery-textarea-field {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
}

/* Gallery Slider */
.fsc-layout-interactive.template-studio .gallery-header-gallery-area {
    border: none !important;
    background: #000 !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

/* Fonts List: GRID LAYOUT (The Big Change) */
.fsc-layout-interactive.template-studio .font-showcase-fonts {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fsc-layout-interactive.template-studio .font-showcase-font-item.gallery-item.font-container {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fsc-layout-interactive.template-studio .font-showcase-font-item.gallery-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.fsc-layout-interactive.template-studio .font-names {
    margin-bottom: 15px;
    text-align: center;
    justify-content: center !important;
}

.fsc-layout-interactive.template-studio .font-name {
    color: #fff !important;
    font-size: 1.1rem !important;
}

.fsc-layout-interactive.template-studio .designer-name,
.fsc-layout-interactive.template-studio .designer-name a {
    color: #666 !important;
}

.fsc-layout-interactive.template-studio .font-showcase-font-preview {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.fsc-layout-interactive.template-studio .button.circle {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: none !important;
}

.fsc-layout-interactive.template-studio .button.circle:hover {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.fsc-layout-interactive.template-studio .font-info {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    margin-top: auto; /* Push to bottom of card */
}

/* --- Studio Template: License Text Bottom Center --- */
.fsc-layout-interactive.template-studio .font-names .font-info-t,
.fsc-layout-interactive.template-studio .font-names .font-statement {
    display: none !important;
}

.fsc-layout-interactive.template-studio .font-names {
    margin-bottom: 15px;
    text-align: center;
    justify-content: center !important;
}

.fsc-layout-interactive.template-studio .font-names h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fsc-layout-interactive.template-studio .font-names .designer-name {
    display: block !important;
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    margin-top: 5px;
    letter-spacing: 1px;
    font-weight: 500;
}

.fsc-layout-interactive.template-studio .font-license-footer {
    display: block !important;
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsc-layout-interactive.template-studio .footer-font-statement {
    font-size: 9px;
    color: #555;
    font-weight: 400;
}

/*--------------------------------------
  TEMPLATE: Studio Light (Light Version)
  Clean, Minimal, Modern Grid - Light Theme
--------------------------------------*/
.fsc-layout-interactive.template-studio-light {
    background: #f5f5f5 !important;
    padding: 30px !important;
    border-radius: 20px !important;
    font-family: 'Inter', sans-serif !important;
    color: #000 !important;
}

/* Header Controls - Light */
.fsc-layout-interactive.template-studio-light .gallery-header-controls-area {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

.fsc-layout-interactive.template-studio-light .gallery-control-item label {
    color: #333 !important;
    text-transform: uppercase;
    font-size: 10px !important;
    letter-spacing: 1px;
}

.fsc-layout-interactive.template-studio-light .gallery-textarea-field {
    background: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

/* Gallery Slider - Light */
.fsc-layout-interactive.template-studio-light .gallery-header-gallery-area {
    border: none !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05) !important;
}

/* Fonts List: GRID LAYOUT - Light */
.fsc-layout-interactive.template-studio-light .font-showcase-fonts {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fsc-layout-interactive.template-studio-light .font-showcase-font-item.gallery-item.font-container {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.fsc-layout-interactive.template-studio-light .font-showcase-font-item.gallery-item:hover {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* Header Alignment - Center like Studio */
.fsc-layout-interactive.template-studio-light .font-names {
    margin-bottom: 15px;
    text-align: center;
    justify-content: center !important;
}

.fsc-layout-interactive.template-studio-light .font-names h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fsc-layout-interactive.template-studio-light .font-name {
    color: #000 !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

/* Designer Name in Header */
.fsc-layout-interactive.template-studio-light .font-names .designer-name {
    display: block !important;
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    margin-top: 5px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Hide original top elements */
.fsc-layout-interactive.template-studio-light .font-names .font-info-t,
.fsc-layout-interactive.template-studio-light .font-names .font-statement {
    display: none !important;
}

/* Preview Text */
.fsc-layout-interactive.template-studio-light .font-showcase-font-preview {
    color: #000;
    text-shadow: none;
}

/* Buttons */
.fsc-layout-interactive.template-studio-light .button.circle {
    background: #f0f0f0 !important;
    color: #555 !important;
    border: none !important;
}

.fsc-layout-interactive.template-studio-light .button.circle:hover {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Footer - Light */
.fsc-layout-interactive.template-studio-light .font-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: auto; 
}

.fsc-layout-interactive.template-studio-light .font-license-footer {
    display: block !important;
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsc-layout-interactive.template-studio-light .footer-font-statement {
    font-size: 9px;
    color: #999;
    font-weight: 400;
}
