/* ========================================
   Custom Styles for PSD Design Implementation
   Width: 1200px
   ======================================== */

/* ========================================
   Typography - Custom Fonts
   ======================================== */

/* DecimaNovaPro - Primary font family */
@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Ital.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Light-Ital.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Bold-Ital.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DecimaNovaPro';
  src: url('../fonts/DecimaNovaPro-Heavy-Ital.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Bodoni - Decorative font (for special elements) */
@font-face {
  font-family: 'Bodoni06';
  src: url('../fonts/Bodoni06-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply DecimaNovaPro as default */
body {
  font-family: 'DecimaNovaPro', 'Arial', sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'DecimaNovaPro', 'Arial', sans-serif;
  font-weight: 400;
}

/* Special class for Bodoni font where needed */
.bodoni-font {
  font-family: 'Bodoni06', 'Georgia', serif;
  font-weight: 700;
}

/* ========================================
   Links - Override Avada default colors
   ======================================== */

/* Set all links to black by default - EXCEPT tab buttons */
a:not(.piece-tab-button),
a:not(.piece-tab-button):link,
a:not(.piece-tab-button):visited {
  color: #000000 !important;
  text-decoration: none;
}

a:not(.piece-tab-button):hover,
a:not(.piece-tab-button):focus,
a:not(.piece-tab-button):active {
  color: #000000 !important;
  text-decoration: none !important;
}

/* ========================================
   Header Section
   Height: 244px, Width: 1200px
   White background with signature, menu, language switcher
   ======================================== */

/* Custom header wrapper */
.custom-header-wrapper {
  width: 100%;
  background-color: #ffffff;
}

/* Custom header - 244px height */
.custom-header {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 244px;
  margin: 0 auto;
  background-color: #ffffff;
}

/* Composer signature - 55px from left and top */
.composer-signature {
  position: absolute;
  left: 55px;
  top: 55px;
  width: 250px;
  height: 100px;
}

.composer-signature img {
  width: 250px;
  height: 100px;
}

/* Language switcher - Top right */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.language-switcher a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
  color: #000;
}

.language-switcher .separator {
  color: #666;
}

/* Main navigation - 180px from top, left-aligned */
.main-navigation {
  position: absolute;
  top: 190px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 0 55px;
  margin: 0;
  background: transparent;
}

.main-navigation ul {
  display: flex !important;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 65px;
  visibility: visible !important;
}

.main-navigation li {
  display: block !important;
  margin: 0;
  padding: 0;
  visibility: visible !important;
}

.main-navigation a {
  display: block !important;
  padding: 0;
  color: #333 !important;
  text-decoration: none;
  font-family: 'DecimaNovaPro', 'Arial', sans-serif !important;
  font-size: 20px !important;
  font-weight: normal !important;
  transition: all 0.3s ease;
  border-bottom: 12px solid transparent;
  visibility: visible !important;
}

.main-navigation a:hover,
.main-navigation a.active,
.main-navigation .current-menu-item>a,
.main-navigation .current-menu-parent>a,
.main-navigation .current-menu-ancestor>a,
.main-navigation .current_page_item>a,
.main-navigation .current_page_parent>a,
.main-navigation .current_page_ancestor>a {
  color: #000;
  border-bottom-color: #000;
}

/* ========================================
   Hero Image Section
   Height: 465px, Width: 1200px
   Located below the header
   ======================================== */

.hero-image {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 465px;
  margin: 0 auto;
  background-image: url('../images/hero/hero-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* If no image, use solid color */
  background-color: #f5f5f5;
}

/* Separator row below hero */
.hero-separator {
  height: 35px;
  background-color: #ccc;
  width: 100%;
  margin: 0;
}

/* ========================================
   Content Sections
   ======================================== */

.content-section {
  /* Add content section styles */
}

/* ========================================
   Feature Boxes
   ======================================== */

.feature-box {
  /* Add feature box styles from PSD */
}

/* ========================================
   Buttons
   ======================================== */

.custom-button,
.fusion-button {
  /* Add custom button styles from PSD */
}

.custom-button:hover,
.fusion-button:hover {
  /* Add hover effects */
}

/* ========================================
   Images and Graphics
   ======================================== */

/* Remove opacity from Avada imageframe styles */
.awb-imageframe-style-dany img,
.awb-imageframe-style-dario img,
.awb-imageframe-style-navin img,
.awb-imageframe-style-resa img,
.awb-imageframe-style-schantel img {
  opacity: 1 !important;
}

/* Remove opacity from Avada image overlays and captions */
.fusion-image-wrapper .fusion-rollover,
.fusion-image-wrapper .fusion-rollover-content,
.fusion-image-wrapper .fusion-link-wrapper,
.fusion-rollover,
.awb-image-rollover-wrapper .awb-image-rollover,
.awb-image-rollover-wrapper .awb-image-rollover-content,
img+.fusion-rollover,
.fusion-image-wrapper .fusion-rollover-gallery {
  opacity: 1 !important;
  background: transparent !important;
}

/* Ensure no overlay background on hover */
.fusion-image-wrapper:hover .fusion-rollover,
.awb-image-rollover-wrapper:hover .awb-image-rollover {
  opacity: 1 !important;
  background: transparent !important;
}

/* Position image caption at bottom left */
.awb-imageframe-caption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  padding: 20px !important;
  padding-top: 0 !important;
  width: 100% !important;
}

.awb-imageframe-caption-title {
  margin: 0 !important;
}

.custom-image-container {
  /* Add styles for image containers */
}

/* ========================================
   Footer Section
   ======================================== */

.fusion-footer {
  /* Custom footer styles */
}

/* Make footer columns equal height for consistent separator lines */
.fusion-footer .fusion-builder-row {
  display: flex !important;
  align-items: stretch !important;
}

.fusion-footer .fusion-layout-column {
  display: flex !important;
}

.fusion-footer .fusion-column-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (iPad) - 768px and below */
@media screen and (max-width: 768px) {
  .fusion-row {
    max-width: 100%;
    padding: 0 20px;
  }

  .custom-header {
    height: auto;
    min-height: 244px;
    padding: 20px;
  }

  .hero-image {
    height: 300px;
  }

  .composer-signature {
    position: static;
    transform: none;
    margin: 20px auto;
    text-align: center;
  }

  .language-switcher {
    top: 10px;
    right: 10px;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-navigation a {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Mobile - 640px and below */
@media screen and (max-width: 640px) {
  .custom-header {
    height: auto;
    min-height: 200px;
  }

  .hero-image {
    height: 250px;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
}

/* ========================================
   Custom Utilities
   ======================================== */

/* Add utility classes as needed */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ========================================
   Sheet Music List Styling
   ======================================== */

.sheet-music-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.sheet-music-item {
  border: 1px solid #e0e0e0;
  padding: 20px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.sheet-music-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sheet-music-thumbnail {
  margin-bottom: 15px;
}

.sheet-music-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.sheet-music-title {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.sheet-music-title a {
  color: #000 !important;
  text-decoration: none !important;
}

.sheet-music-excerpt {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.sheet-music-link {
  display: inline-block;
  color: #000 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.sheet-music-custom-fields {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.8;
}

.sheet-music-field {
  margin-bottom: 5px;
}

.sheet-music-field .field-label {
  font-weight: 600;
  margin-right: 5px;
}

.sheet-music-field .field-value {
  color: #333;
}

/* ========================================
   Sheet Music List Page Template
   ======================================== */

.sheet-music-archive-page {
  background: #e3e3de !important;
  padding: 0 55px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sheet-music-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 100%;
  margin-right: 80px;
}

.sheet-music-filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-group {
  display: flex;
  align-items: center;
}

.control-group label {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  color: #000;
  white-space: nowrap;
}

.control-group select {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  padding: 5px 12px;
  border: none;
  background: #c9c9bd;
  color: #fff;
  border-radius: 0;
  cursor: pointer;
  width: 120px;
  height: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1;
}

.control-group select:hover {
  background: #b5b5a8;
}

.control-group select:focus {
  outline: none;
  background: #b5b5a8;
}

/* Active state - when filter is applied */
.control-group select.active {
  background: #000;
  color: #fff;
}

.sheet-music-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.sheet-music-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sheet-music-card {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 0;
  border: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  position: relative;
  background-image: url('../images/nyil.png');
  background-repeat: no-repeat;
  background-position: 75% top;
}

.sheet-music-card:hover {
  background-color: #828270;
  background-image: url('../images/nyil.png');
  background-repeat: no-repeat;
  background-position: 75% top;
}

.sheet-music-card-link:hover .sheet-music-name,
.sheet-music-card-link:hover .sheet-music-publisher-year {
  color: #ffffff !important;
}

.sheet-music-details {
  padding: 0;
}

.sheet-music-name {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.sheet-music-name a {
  color: #000000;
  text-decoration: none;
  transition: none;
}

.sheet-music-name a:hover {
  color: #000000;
}

/* Publisher and year on second line */
.sheet-music-publisher-year {
  font-size: 14px;
  color: #000000;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sheet-music-grid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Apply standard layout with 1200px max-width */
body.page-template-template-sheet-music-list #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

/* Force full width layout - override Avada's sidebar layout */
body.page-template-template-sheet-music-list #content .fusion-fullwidth,
body.page-template-template-sheet-music-list #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recordings-grid {}
}

/* ========================================
   Recordings List Page Template
   ======================================== */

body.page-template-template-recordings-list #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

body.page-template-template-recordings-list #content .fusion-fullwidth,
body.page-template-template-recordings-list #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.recordings-archive-page {
  background: #e3e3de !important;
  padding: 0 55px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.recordings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.recordings-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recordings-card {
  background: #ffffff;
  padding: 15px 20px;
  padding-right: 180px;
  margin: 0;
  border: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  position: relative;
  background-image: url('../images/nyil.png');
  background-repeat: no-repeat;
  background-position: 75% top;
}

.recordings-card:hover {
  background-color: #828270;
  background-image: url('../images/nyil.png');
  background-repeat: no-repeat;
  background-position: 75% top;
}

.recordings-card .recording-cover {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.recordings-card-link:hover .recordings-name,
.recordings-card-link:hover .recordings-metadata {
  color: #ffffff !important;
}

.recordings-details {
  padding: 0;
}

.recordings-name {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
  line-height: 1.4;
  color: #000000;
  transition: none;
}

.recordings-metadata {
  font-size: 14px;
  color: #000000;
  margin: 0;
}

@media (max-width: 768px) {
  .recordings-grid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ========================================
   Pagination Styling
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px 0;
  margin-top: 0 !important;
  font-family: 'DecimaNovaPro', sans-serif;
}

.pagination .page-link {
  display: inline-block;
  padding: 8px 12px;
  min-width: 40px;
  text-align: center;
  background: #fff;
  color: #000;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: #828270;
  color: #fff;
  border-color: #828270;
}

.pagination .page-link.current {
  background: #000;
  color: #fff;
  border-color: #000;
  font-weight: bold;
}

.pagination .page-link.disabled {
  background: #f5f5f5;
  color: #ccc;
  border-color: #ddd;
  cursor: not-allowed;
}

.pagination .page-link.prev,
.pagination .page-link.next {
  font-weight: bold;
  font-size: 18px;
}

/* ========================================
   Single Sheet Music Page Template
   ======================================== */

/* Hide plugin-generated piece meta blocks */
.piece-meta,
.single-piece .piece-meta,
body.single-piece .piece-meta,
.postid .piece-meta {
  display: none !important;
}

.sheet-music-single-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #e3e3de;
  padding: 40px 55px;
}

.sheet-music-title {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: #000;
}

.sheet-music-meta {
  margin-bottom: 30px;
  padding: 20px;
  background: #ffffff;
  border-radius: 0;
}

.sheet-music-meta .meta-item {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.sheet-music-meta .meta-item strong {
  font-weight: 700;
  color: #000;
}

.sheet-music-main-content {
  padding: 20px;
  background: #ffffff;
}

/* ========================================
   Piece Detail Tabs System
   ======================================== */

/* Tab Buttons */
.piece-tab-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Tab Buttons - Explicit ID-based styling */

/* Base state for all buttons - override Avada CSS variables */
#piece-tab-button-adatok,
#piece-tab-button-tetelek,
#piece-tab-button-szoveg,
#piece-tab-button-leiras,
#piece-tab-button-kritikak,
#piece-tab-button-felvetelek {
  --button_accent_color: #000 !important;
  --button_gradient_top_color: #e3e3de !important;
  --button_gradient_bottom_color: #e3e3de !important;
  background: #e3e3de !important;
  color: #000 !important;
}

/* Fusion button text spans - force black color for inactive */
#piece-tab-button-adatok .fusion-button-text,
#piece-tab-button-tetelek .fusion-button-text,
#piece-tab-button-szoveg .fusion-button-text,
#piece-tab-button-leiras .fusion-button-text,
#piece-tab-button-kritikak .fusion-button-text,
#piece-tab-button-felvetelek .fusion-button-text {
  color: #000 !important;
}

/* Hover state - mid beige with WHITE text */
#piece-tab-button-adatok:hover,
#piece-tab-button-tetelek:hover,
#piece-tab-button-szoveg:hover,
#piece-tab-button-leiras:hover,
#piece-tab-button-kritikak:hover,
#piece-tab-button-felvetelek:hover {
  --button_accent_color: #fff !important;
  --button_gradient_top_color: #b5b5a8 !important;
  --button_gradient_bottom_color: #b5b5a8 !important;
  background: #b5b5a8 !important;
  color: #fff !important;
}

/* Hover state - spans WHITE color */
#piece-tab-button-adatok:hover .fusion-button-text,
#piece-tab-button-tetelek:hover .fusion-button-text,
#piece-tab-button-szoveg:hover .fusion-button-text,
#piece-tab-button-leiras:hover .fusion-button-text,
#piece-tab-button-kritikak:hover .fusion-button-text,
#piece-tab-button-felvetelek:hover .fusion-button-text {
  color: #fff !important;
}

/* Active state inline styles applied by JavaScript will override hover */

/* Tab Content Sections */
.piece-sections-container {
  padding-bottom: 50px;
}

.piece-section {
  display: none;
  /* padding: 30px; */
  background: #e3e3de;
  /* border: 1px solid #ddd; */
}

.piece-section.active {
  display: block;
}

.piece-section h3 {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #000;
}

.piece-section-content {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Featured image in piece section */
.piece-featured-image {
  float: right;
  margin: 0 0 20px 20px;
  max-width: 400px;
}

.piece-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clear float after section content */
.piece-section-content::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================================
   Videos Grid Layout - 3 Columns
   ========================================== */

/* Force full width layout - override Avada's sidebar layout */
body.page-template-template-videos-list #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

body.page-template-template-videos-list #content .fusion-fullwidth,
body.page-template-template-videos-list #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.videos-archive-page {
  background: #e3e3de !important;
  padding: 0 80px 30px 80px;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.videos-grid {
  display: grid;
  grid-template-columns: 330px 330px 330px;
  gap: 25px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.video-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card {
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 aspect ratio (330px width = 185.625px height) */
  overflow: hidden;
  background-color: #f0f0f0;
}

.video-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
}

.play-icon {
  font-size: 48px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-details {
  padding: 10px 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-family: 'DecimaNovaPro', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  color: #333333;
}

.video-metadata {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  font-family: 'DecimaNovaPro', Arial, sans-serif;
}

.video-excerpt {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
  margin-top: auto;
  font-family: 'DecimaNovaPro', Arial, sans-serif;
}

.no-videos {
  text-align: center;
  padding: 40px 0;
  font-size: 18px;
  color: #666666;
}

/* Responsive Design for Videos Grid */
@media screen and (max-width: 900px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media screen and (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .videos-archive-page {
    padding: 0 20px;
  }

  .video-title {
    font-size: 16px;
  }
}

/* YouTube badge for video cards */
.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 10;
  font-family: 'DecimaNovaPro', Arial, sans-serif;
}

.youtube-badge {
  background: #FF0000;
  color: #ffffff;
}

/* ========================================
   Single Video Page Template
   ======================================== */

body.single-video #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

body.single-video #content .fusion-fullwidth,
body.single-video #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.video-single-page {
  background: #000000 !important;
  width: 100%;
}

.video-single-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #000000;
}

.video-tabs-container {
  background: #e3e3de;
  padding: 0 80px;
  border-bottom: 1px solid #ccc;
}

.video-tabs {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  min-height: 50px;
}

.video-tabs .submenu-items {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-tabs .submenu-items li {
  margin: 0;
}

.video-tabs .submenu-items a {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  padding: 5px 0;
  display: inline-block;
}

.video-tabs .submenu-items a:hover,
.video-tabs .submenu-items .current-menu-item a {
  text-decoration: underline;
}

.video-tabs .tab-placeholder {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.video-content-wrapper {
  background: #000000;
  padding: 40px 80px;
  min-height: 400px;
}

.video-single-page .video-title {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin: 30px 0 20px 0;
  color: #ffffff;
}

/* Video player containers */
.video-player {
  margin-bottom: 0;
  background: #000;
  max-width: 1040px;
  width: 100%;
}

/* YouTube embed responsive container */
.video-embed-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Uploaded video player */
.uploaded-player video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.video-cover-large {
  margin-bottom: 0;
  text-align: center;
  background: #000000;
  max-width: 1040px;
}

.video-cover-large img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.video-meta {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.video-meta .meta-item {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
  color: #ffffff;
}

.video-meta .meta-item strong {
  font-weight: 400;
  color: #ffffff;
}

.video-main-content {
  padding: 0;
  background: transparent;
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  max-width: 1040px;
}

/* Responsive adjustments for video single page */
@media (max-width: 768px) {
  .video-content-wrapper {
    padding: 20px;
  }

  .video-single-page .video-title {
    font-size: 24px;
  }
}

/* ========================================
   Photos List Page
   4 columns × 3 rows = 12 photos per page
   ======================================== */

/* Force full width layout - override Avada's sidebar layout */
body.page-template-template-photos-list #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

body.page-template-template-photos-list #content .fusion-fullwidth,
body.page-template-template-photos-list #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.photos-archive-page {
  background: #e3e3de !important;
  padding: 0 80px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Center pagination within photos archive page */
.photos-archive-page .pagination {
  text-align: center;
  width: 100%;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 0px;
  margin: 0 auto;
  max-width: 1200px;
}

.photo-item {
  width: 260px;
  background: #ffffff;
  padding-bottom: 20px;
}

.photo-link {
  display: block;
  text-decoration: none;
}

.photo-wrapper {
  position: relative;
  width: 260px;
  height: 190px;
  overflow: hidden;
  background: #f5f5f5;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-link:hover .photo-wrapper img {
  transform: scale(1.05);
}

.photo-metadata {
  height: 60px;
  padding: 10px 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.photo-title {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 16px;
  color: #000;
  margin: 0 0 5px 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-info {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-underline {
  width: 160px;
  height: 10px;
  background: #838270;
  margin: 0;
}

.no-photos {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

/* Photos Pagination */
.photos-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 15px;
  margin: 0 auto !important;
  padding: 20px 0;
  width: 100% !important;
  text-align: center !important;
}

.photos-pagination .page-link {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #000;
  text-decoration: none;
  border: none;
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.photos-pagination .page-link:hover {
  opacity: 0.6;
}

.photos-pagination .page-link.current {
  opacity: 1;
  cursor: default;
  text-decoration: underline;
}

.photos-pagination .page-link.current:hover {
  opacity: 1;
}

.photos-pagination .page-link.prev,
.photos-pagination .page-link.next {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.photos-pagination .page-link.prev {
  background-image: url('../images/arrow-left.png');
}

.photos-pagination .page-link.next {
  background-image: url('../images/arrow-right.png');
}

.photos-pagination .page-link.ellipsis {
  background: transparent;
  border: none;
  cursor: default;
  padding: 0;
  font-weight: 400;
  opacity: 0.5;
}

.photos-pagination .page-link.ellipsis:hover {
  background: transparent;
  opacity: 0.5;
}

/* Responsive adjustments for photos grid */
@media (max-width: 1024px) {
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .photo-caption {
    font-size: 12px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .photos-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ========================================
   Single Photo Page Template
   ======================================== */

/* Force full width layout - override Avada's sidebar layout */
body.attachment #content {
  width: 100% !important;
  max-width: 1200px !important;
  float: none !important;
  margin: 0 auto !important;
}

body.attachment #content .fusion-fullwidth,
body.attachment #content .fusion-row {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single-photo-page {
  background: #000000;
  width: 100%;
  min-height: calc(100vh - 244px);
}

.single-photo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.single-photo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.single-photo-wrapper {
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.single-photo-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.single-photo-metadata {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
}

.single-photo-title {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.single-photo-caption {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 16px;
  color: #cccccc;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.single-photo-date {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 14px;
  color: #999999;
  margin: 0;
}

/* Navigation Arrows */
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 48px;
  transition: all 0.3s ease;
  z-index: 10;
}

.photo-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.photo-nav-prev {
  left: 20px;
}

.photo-nav-next {
  right: 20px;
}

.nav-arrow {
  line-height: 1;
  font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .single-photo-container {
    padding: 20px;
  }

  .photo-nav {
    width: 50px;
    height: 50px;
    font-size: 36px;
  }

  .photo-nav-prev {
    left: 10px;
  }

  .photo-nav-next {
    right: 10px;
  }

  .single-photo-title {
    font-size: 20px;
  }
}

/* ========================================
   Photo Viewer Page (Custom Template)
   ======================================== */

/* Force full width for photo viewer template */
body.page-template-template-photo-viewer #content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.page-template-template-photo-viewer #content .fusion-fullwidth,
body.page-template-template-photo-viewer #content .fusion-row {
  max-width: 100% !important;
}

.photo-viewer-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #000000 0%, #6b6b68 20%, #6b6b68 80%, #000000 100%);
  min-height: 600px;
}

.photo-viewer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-viewer-wrapper {
  max-width: 100%;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.photo-viewer-image {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.photo-viewer-metadata {
  text-align: center;
  max-width: 800px;
  padding: 20px 0;
}

.photo-viewer-title {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 15px 0;
}

.photo-viewer-caption {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 20px;
  color: #cccccc;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.photo-viewer-date {
  font-family: 'DecimaNovaPro', sans-serif;
  font-size: 20px;
  color: #999999;
  margin: 0;
}

/* Navigation arrows for photo viewer */
.photo-viewer-container .photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 48px;
  transition: all 0.3s ease;
  z-index: 10;
}

.photo-viewer-container .photo-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.photo-viewer-container .photo-nav-prev {
  left: 20px;
}

.photo-viewer-container .photo-nav-next {
  right: 20px;
}

/* Responsive adjustments for photo viewer */
@media (max-width: 768px) {
  .photo-viewer-container {
    padding: 40px 20px;
  }

  .photo-viewer-container .photo-nav {
    width: 50px;
    height: 50px;
    font-size: 36px;
  }

  .photo-viewer-container .photo-nav-prev {
    left: 10px;
  }

  .photo-viewer-container .photo-nav-next {
    right: 10px;
  }

  .photo-viewer-title {
    font-size: 20px;
  }
}

/* ========================================
   Hide download box on single piece pages
   ======================================== */
.download-box {
  display: none !important;
}

/* ========================================
   Horizontal design element line
   ======================================== */
.horizontal-line {
  width: 240px;
  height: 13px;
  background-color: #828270;
}