/* Video Enhancement Styles for JustVideo Theme */

/* Video Action Buttons */
.video-actions {
  display: none !important;
}

#site-bottom {
		display: none;
	}

.like-btn {
    position:relative;
}

/* Like Button Specific Styles */
.like-btn.liked {
  background: #ff4757;
  color: #fff;
}

.like-btn.liked:hover {
  background: #ff3838;
}

.like-btn i {
  transition: all 0.3s ease;
}

.like-btn.liked i {
  animation: heartBeat 0.6s ease-in-out;
}

/* Like count styling */
.like-count {
  position: absolute;
  top: -12px;
  right: -8px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
}

/* Pulse animation for new likes */
.like-btn.just-liked .like-count {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
}

/* Download Button Specific Styles */
.download-btn:hover {
  background: #27ae60;
}

/* Share Button Specific Styles */
.share-btn:hover {
  background: #3498db;
}

/* Video hover play/pause overlay */
.video-play-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.video-container:hover .video-play-state {
  opacity: 1;
  visibility: visible;
}

.video-container.playing .video-play-state {
  opacity: 0;
  visibility: hidden;
}

/* Enhanced hover effects for videos */
.video-container {
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-container:hover {
  /* transform: scale(1.02); */
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); */
}

.video-container.playing:hover {
  transform: scale(1);
}

/* Enhanced video overlay effects */
/* .video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.video-container:hover::before {
  opacity: 1;
} */

/* Video title overlay on hover */
.video-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 3;
}

.video-container:hover .video-title-overlay {
  transform: translateY(0);
}

.video-title-overlay h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile responsive adjustments for action buttons */
@media (max-width: 768px) {
  .video-actions {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 4px;
  }
  
  .video-action-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .video-play-state {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Small screen optimizations */
@media (max-width: 480px) {
  .video-actions {
    flex-direction: row;
    top: auto;
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
  }
  
  .video-action-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Loading state for video actions */
.video-action-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.video-action-btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Share menu dropdown */
.share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.share-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-size: 14px;
}

.share-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.share-menu-item i {
  margin-right: 8px;
  width: 16px;
}

/* Notification toast styles */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.success {
  background: rgba(39, 174, 96, 0.9);
}

.toast-notification.error {
  background: rgba(231, 76, 60, 0.9);
}

/* Grid Layout Fixes for Consistent Video Container Sizes */

/* Ensure consistent heights for all grid items */
.content-loop {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.content-loop .hentry {
  display: flex;
  flex-direction: column;
  margin: 0 10px 20px;
  box-sizing: border-box;
}

/* Grid system with consistent heights */
.content-loop .ht_grid_1_4 {
  width: calc(25% - 20px);
  height: 280px;
}

.content-loop .ht_grid_1_3 {
  width: calc(33.333% - 20px);
  min-height: 320px;
}

.content-loop .ht_grid_1_2 {
  width: calc(50% - 20px);
  min-height: 350px;
}

/* Video container fixes for consistent sizing */
.content-loop .video-container {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  padding-bottom: 0; /* Remove aspect ratio padding */
  overflow: hidden;
  background-color: #000;
  margin-bottom: 12px;
  border-radius: 8px;
}

/* Ensure video/iframe fills container properly */
.content-loop .video-container iframe,
.content-loop .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Entry header should be flexible */
.content-loop .entry-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8px;
}

/* Tablet responsive (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .content-loop .ht_grid_1_4 {
    width: calc(33.333% - 20px);
    min-height: 300px;
  }
  
  .content-loop .video-container {
    height: 180px;
  }
}

/* Tablet portrait (768px - 959px) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  .content-loop .ht_grid_1_4 {
    width: calc(50% - 20px);
    min-height: 320px;
  }
  
  .content-loop .video-container {
    height: 200px;
  }
}

/* Mobile landscape (480px - 767px) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .content-loop {
    margin: 0 -8px;
  }
  
  .content-loop .hentry {
    margin: 0 8px 16px;
  }
  
  .content-loop .ht_grid_1_4,
  .content-loop .ht_grid_1_3,
  .content-loop .ht_grid_1_2 {
    width: calc(50% - 16px);
    min-height: 280px;
  }
  
  .content-loop .video-container {
    height: 160px;
  }
}


/* Fix for when thumbnails are used instead of videos */
.content-loop .thumbnail-link {
  display: block;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.content-loop .thumbnail-wrap {
  height: 100%;
  overflow: hidden;
}

.content-loop .thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-loop .hentry:hover .thumbnail-wrap img {
  transform: scale(1.05);
}

/* Ensure proper spacing and alignment */
.content-loop .entry-title {
  margin: 8px 0 6px;
  line-height: 1.3;
  font-size: 16px;
}

.content-loop .entry-meta {
  margin-top: auto;
  font-size: 13px;
  color: #999;
}

.content-loop .entry-category {
  margin-bottom: 8px;
}

/* Box shadow and hover effects for better visual hierarchy */
.content-loop .hentry {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding-bottom: 16px;
}

.content-loop .hentry:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Remove old float-based layout issues */
.content-loop .ht_grid_1_2,
.content-loop .ht_grid_1_3,
.content-loop .ht_grid_1_4 {
  float: none;
  margin-right: 0;
  clear: none;
}

/* Fix for flexbox clearing issues */
.content-loop .ht_grid_1_2:after,
.content-loop .ht_grid_1_3:after,
.content-loop .ht_grid_1_4:after {
  display: none;
}

/* Ensure consistent layout across all screen sizes */
@media only screen and (min-width: 1200px) {
  .content-loop .ht_grid_1_4 {
    width: calc(25% - 20px);
  }
  
  .content-loop .video-container {
    height: 220px;
  }
}

/* Widget and Sidebar Video Container Fixes */

/* Home content widget fixes */
.widget-home-content .posts-loop {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.widget-home-content .posts-loop .hentry {
  margin: 0 8px 16px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-home-content .ht_grid_1_2 {
  width: calc(50% - 16px);
  float: none;
}

.widget-home-content .ht_grid_1_3 {
  width: calc(33.333% - 16px);
  float: none;
}

.widget-home-content .ht_grid_1_4 {
  width: calc(25% - 16px);
  float: none;
}

.widget-home-content .video-container {
  height: 140px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.widget-home-content .entry-header {
  padding: 12px 16px 16px;
}

/* Sidebar related posts fixes */
.entry-related {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}

.entry-related .hentry {
  width: calc(50% - 12px);
  margin: 0 6px 12px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  float: none;
}

.entry-related .video-container {
  height: 120px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.entry-related .entry-header {
  padding: 8px 12px 12px;
}

.entry-related .entry-title {
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.entry-related .entry-meta {
  font-size: 12px;
  color: #999;
}

/* Widget posts thumbnail fixes */
.widget-posts-thumbnail .hentry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 8px;
}

.widget-posts-thumbnail .video-container,
.widget-posts-thumbnail .thumbnail-link {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
}

.widget-posts-thumbnail .video-container {
  padding-bottom: 0;
}

.widget-posts-thumbnail .entry-wrap {
  flex: 1;
  min-width: 0;
}

.widget-posts-thumbnail .entry-wrap a {
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.widget-posts-thumbnail .entry-meta {
  font-size: 12px;
  color: #999;
}

/* Fix clearfix issues in flexbox layouts */
.content-loop::after,
.widget-home-content .posts-loop::after,
.entry-related::after {
  display: none;
}

/* Responsive fixes for widgets */
@media only screen and (max-width: 768px) {
  .widget-home-content .ht_grid_1_4,
  .widget-home-content .ht_grid_1_3 {
    width: calc(50% - 16px);
  }
  
  .widget-home-content .video-container {
    height: 120px;
  }
  
  .entry-related .hentry {
    width: 100%;
    margin: 0 0 12px;
  }
  
  .entry-related .video-container {
    height: 140px;
  }
}

@media only screen and (max-width: 480px) {
  .widget-home-content .ht_grid_1_4,
  .widget-home-content .ht_grid_1_3,
  .widget-home-content .ht_grid_1_2 {
    width: 100%;
    margin: 0 0 16px;
  }
  
  .widget-home-content .posts-loop {
    margin: 0;
    flex-direction: column;
  }
  
  .widget-posts-thumbnail .video-container,
  .widget-posts-thumbnail .thumbnail-link {
    width: 70px;
    height: 50px;
  }
}

/* Additional fixes for better visual consistency */
.content-loop .hentry,
.widget-home-content .hentry,
.entry-related .hentry {
  transition: all 0.3s ease;
}

.content-loop .hentry:hover,
.widget-home-content .hentry:hover,
.entry-related .hentry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure proper z-index stacking */
.video-actions {
  z-index: 10;
}

.video-play-state {
  z-index: 8;
}

.video-overlay {
  z-index: 6;
}

/* Flexbox layout enforcement */
.content-loop.flex-fixed {
  display: flex !important;
  flex-wrap: wrap !important;
}

.widget-home-content .posts-loop.flex-fixed {
  display: flex !important;
  flex-wrap: wrap !important;
}

.entry-related.flex-fixed {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Override any conflicting styles when flexbox is active */
.flex-fixed .ht_grid_1_2,
.flex-fixed .ht_grid_1_3,
.flex-fixed .ht_grid_1_4 {
  float: none !important;
  clear: none !important;
  margin-right: 0 !important;
}

/* Ensure consistent baseline alignment */
.content-loop.flex-fixed .hentry {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

/* Force proper box model */
.content-loop.flex-fixed .hentry,
.widget-home-content .posts-loop.flex-fixed .hentry,
.entry-related.flex-fixed .hentry {
  box-sizing: border-box !important;
}

/* Fix any remaining float-based issues */
.content-loop.flex-fixed::after,
.widget-home-content .posts-loop.flex-fixed::after,
.entry-related.flex-fixed::after {
  content: none !important;
  display: none !important;
}

/* Smooth transition for layout changes */
.content-loop,
.widget-home-content .posts-loop,
.entry-related {
  transition: all 0.3s ease;
}

/* High priority fixes for Internet Explorer and older browsers */
@supports not (display: flex) {
  .content-loop .ht_grid_1_4 {
    width: 23%;
    margin-right: 2.666%;
  }
  
  .content-loop .ht_grid_1_3 {
    width: 31.333%;
    margin-right: 3%;
  }
  
  .content-loop .ht_grid_1_2 {
    width: 48%;
    margin-right: 4%;
  }
}

/* Video Action Buttons in Entry Header */
.video-actions-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 2px 0;
}

.video-actions-header .video-action-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    min-width: 28px;
    height: 22px;
    justify-content: center;
}

.video-actions-header .video-action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.video-actions-header .like-btn.liked {
    background: #e74c3c;
    color: white;
}

.video-actions-header .like-btn.just-liked {
    animation: heartPulse 0.6s ease;
}

.video-actions-header .like-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.video-actions-header .like-count {
    font-size: 10px;
    margin-left: 2px;
}

.video-actions-header .download-btn {
    background: #27ae60;
}

.video-actions-header .download-btn:hover {
    background: #2ecc71;
}

.video-actions-header .share-btn {
    background: #3498db;
}

.video-actions-header .share-btn:hover {
    background: #2980b9;
}

/* Responsive adjustments for entry header buttons */
@media (max-width: 768px) {
    .video-actions-header {
        margin-left: 8px;
        gap: 6px;
    }
    
    .video-actions-header .video-action-btn {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 24px;
        height: 20px;
    }
    
    .video-actions-header .like-count {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .video-actions-header {
        margin-left: 5px;
        gap: 8px;
    }
    
    .video-actions-header .video-action-btn {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 34px;
        height: 34px;
    }
}

/* Mobile fullscreen video mode body class */
body.mobile-fullscreen-video {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
}

body.mobile-fullscreen-video .content-loop {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
}

/* Additional mobile fullscreen optimizations */
@media only screen and (max-width: 479px) {
  /* Prevent horizontal scroll and ensure vertical scroll */
  body.mobile-fullscreen-video {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto !important;
	margin-top: -10px;
    margin-left: 0;
  }
  
  /* Ensure content-loop scrolls vertically */
  body.mobile-fullscreen-video .content-loop {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory !important;
  }
  
  /* Optimize video loading and performance */
  .content-loop .video-container video {
    will-change: transform;
	  width:100%;
  }
  
  .content-loop .video-container iframe {
    will-change: transform;
    pointer-events: auto;
  }
  
  /* Touch-friendly video controls overlay */
  .content-loop .entry-header {
    pointer-events: auto;
    touch-action: manipulation;
  }
  
  /* Smooth entry header animation */
  .content-loop .entry-header {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
}

/* Mobile auto-playing video styles */
.video-container.auto-playing {
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.video-container.auto-playing .video-play-state {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Auto-play indicator and mute icon for mobile */
.video-mute-toggle {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 16px;
  z-index: 15;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  border: none;
  outline: none;
  display: none;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}



.video-mute-toggle:hover,
.video-mute-toggle:focus {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.video-mute-toggle:active {
  transform: scale(0.95);
}

.video-mute-toggle.unmuted {
  background: rgba(46, 204, 113, 0.8);
}

.video-mute-toggle.unmuted:hover,
.video-mute-toggle.unmuted:focus {
  background: rgba(39, 174, 96, 0.9);
}
@media only screen and (max-width: 479px) {
  /* .video-container.auto-playing::before {
    content: '▶';
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 15;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pulseGlow 2s infinite;
  } */
  
  
  /* Pulse animation for auto-playing indicator */
  @keyframes pulseGlow {
    0%, 100% { 
      opacity: 1;
      transform: scale(1);
    }
    50% { 
      opacity: 0.7;
      transform: scale(1.05);
    }
  }
  
  /* Paused video styling */
  .video-container.paused {
    border: 2px solid rgba(0, 0, 0, 0.2);
    opacity: 0.8;
  }
  
  .video-container.paused::before {
    content: '⏸';
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 15;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  
}

/* Clean Mobile Menu Design */
@media only screen and (max-width: 959px) {
  /* Reset and override any conflicting menu styles */
  .menu-modal {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .menu-modal.show-modal,
  .menu-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }
  
  /* Clean modal container */
  .menu-modal-inner {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    width: 100% !important;
    max-width: 400px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 20px !important;
    animation: modalSlideIn 0.3s ease-out;
  }
  
  @keyframes modalSlideIn {
    from {
      transform: translateY(-50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Header with close button */
  .menu-modal .menu-top {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    flex-shrink: 0;
  }
  .toggle-inner {
    display:flex;
    /* border : 1px solid grey; */
    padding:2px;
    border-radius:15px;
    justtify-content: center;
    column-gap:5px;
  }
  .close-nav-toggle {
    background: transparent !important;
    border: none !important;
    padding: 16px 20px !important;
    width: 100% !important;
    text-align: right !important;
    color: #666 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  
  /* .close-nav-toggle:hover,
  .close-nav-toggle:focus {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
  } */
  
  /* Menu wrapper and content */
  .menu-wrapper {
    display: block !important;
    width: 100% !important;
  }
  
  /* Clean navigation list */
  .modal-menu,
  .mobile-menu {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
  }
  
  .modal-menu ul,
  .mobile-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .modal-menu li,
  .mobile-menu li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: block !important;
    flex-wrap: unset !important;
  }
  
  .modal-menu li:last-child,
  .mobile-menu li:last-child {
    border-bottom: none !important;
  }
  
  /* Clean menu links */
  .modal-menu a,
  .mobile-menu a,
  .modal-menu .ancestor-wrapper > a {
    display: block !important;
    padding: 16px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
  }
  
  .modal-menu a:hover,
  .modal-menu a:focus,
  .mobile-menu a:hover,
  .mobile-menu a:focus {
    background: #f8f9fa !important;
    color: #0099e5 !important;
  }
  
  .modal-menu .current-menu-item > a,
  .modal-menu .current-menu-item > .ancestor-wrapper > a,
  .mobile-menu .current-menu-item > a {
    background: #0099e5 !important;
    color: #ffffff !important;
  }
  
  /* Sub-menu handling */
  .modal-menu .ancestor-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .sub-menu-toggle {
    background: transparent !important;
    border: none !important;
    padding: 16px 20px !important;
    cursor: pointer !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    height: auto !important;
    border-left: 1px solid #f0f0f0 !important;
  }
  
  .sub-menu-toggle:hover,
  .sub-menu-toggle:focus {
    background: #f8f9fa !important;
    color: #0099e5 !important;
  }
  
  .sub-menu-toggle svg {
    width: 12px !important;
    height: 12px !important;
    transition: transform 0.3s ease !important;
    fill: currentColor !important;
  }
  
  .sub-menu-toggle.active svg {
    transform: rotate(180deg) !important;
  }
  
  /* Sub-menu styling */
  .modal-menu ul,
  .mobile-menu .sub-menu {
    display: none !important;
    background: #f9f9f9 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .modal-menu ul.active,
  .mobile-menu .sub-menu.active {
    display: block !important;
  }
  
  .modal-menu ul li,
  .mobile-menu .sub-menu li {
    border-left: none !important;
    border-bottom: 1px solid #eeeeee !important;
  }
  
  .modal-menu ul li a,
  .mobile-menu .sub-menu a {
    padding: 12px 20px 12px 40px !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 400 !important;
  }
  
  .modal-menu ul li a:hover,
  .mobile-menu .sub-menu a:hover {
    background: #f0f0f0 !important;
    color: #0099e5 !important;
  }
  
  /* Header toggle button styling */
  .header-toggles {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
  }
  
  .mobile-nav-toggle,
  button.toggle {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  
  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus,
  button.toggle:hover,
  button.toggle:focus {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0099e5 !important;
  }
  
  .toggle-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
  }
  
  .toggle-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0099e5;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Site header adjustments */
  .site-header {
    position: relative !important;
    z-index: 50 !important;
    height: auto !important;
    min-height: 60px !important;
  }
  
  .site-start {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 15px !important;
    position: relative !important;
  }
  
  .site-branding {
    flex: 1 !important;
    z-index: 60 !important;
  }
  
  /* Hide desktop navigation */
  #primary-nav,
  #secondary-nav {
    display: none !important;
  }
  
  /* Search icon adjustments */
  .header-search {
    margin-right: 8px !important;
    order: 2 !important;
  }
  
  .search-icon {
    padding: 8px !important;
    color: #333 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
  }
  
  .search-icon:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0099e5 !important;
  }
}

/* Mobile fullscreen video mode adjustments */
@media only screen and (max-width: 479px) {
  body.mobile-fullscreen-video .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	  display:none;
  }
  
  body.mobile-fullscreen-video .site-start {
    padding: 8px 15px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  body.mobile-fullscreen-video .site-branding {
    display: none !important;
  }
  
  body.mobile-fullscreen-video .header-search {
    display: none !important;
  }
  
  body.mobile-fullscreen-video .header-toggles {
    margin-left: auto !important;
    position: static !important;
    transform: none !important;
  }
  
  body.mobile-fullscreen-video .mobile-nav-toggle,
  body.mobile-fullscreen-video button.toggle {
    /* color: #ffffff !important; */
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
  }
  
  body.mobile-fullscreen-video .mobile-nav-toggle:hover,
  body.mobile-fullscreen-video button.toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }
  
  body.mobile-fullscreen-video .toggle-icon svg {
    fill: #0099E5 !important;
  }
  
  body.mobile-fullscreen-video .toggle-text {
    color: #0099E5 !important;
  }
  
  /* Ensure menu modal works properly in fullscreen mode */
  body.mobile-fullscreen-video .menu-modal {
    z-index: 99999 !important;
  }
}

.entry-category a {
    color: #0099E5;
}

/* Mobile portrait (max-width: 479px) - Instagram-style full height */
@media only screen and (max-width: 479px) {
  .content-loop {
    /* flex-direction: column;   */
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
	.content-loop .entry-header .entry-category {
		margin-top: 0; 
     margin-bottom: 8px;
	}
	.content-wrap { 
		padding: 0;
	}
	
	/* .video-container.auto-playing .video-mute-toggle */
.video-mute-toggle {
    display: flex;
}
	
	.entry-date {
	display:none;
}
	
	.content-loop .hentry {
    padding: 0;
	}
  .content-loop .hentry {
    margin: 0;
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
	padding-bottom: 0; !important;
  }
  
  .content-loop .ht_grid_1_4,
  .content-loop .ht_grid_1_3,
  .content-loop .ht_grid_1_2 {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
  }
  
  .content-loop .video-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    border-radius: 0;
    margin: 0;
    flex: 1;
  }
  
  /* Position entry header as overlay at bottom */
  .content-loop .entry-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 60px 20px 20px;
    z-index: 10;
  }
  
  .content-loop .entry-title {
    color: white;
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.3;
  }
  
  .content-loop .entry-title a {
    color: white;
    text-decoration: none;
  }
  
  .content-loop .entry-category {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .content-loop .entry-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
	justify-content: space-between;
  }
  
  /* Video action buttons styling for mobile overlay */
  .content-loop .video-actions-header {
    margin-left: 15px;
    margin-top: 8px;
  }
  
  .content-loop .video-actions-header .video-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .content-loop .video-actions-header .like-btn.liked {
    background: #e74c3c;
    border-color: #e74c3c;
  }
  
  .content-loop .video-actions-header .download-btn {
    background: rgba(39, 174, 96, 0.8);
    border-color: #27ae60;
  }
  
  .content-loop .video-actions-header .share-btn {
    background: rgba(52, 152, 219, 0.8);
    border-color: #3498db;
  }

  /* Ensure video content fills entire screen */
  .content-loop .video-container iframe,
  .content-loop .video-container video {
    width: 100%; !important;
    height: 100vh;
    object-fit: cover;
    border-radius: 0;
  }
  
  /* Hide thumbnail fallback properly on mobile */
  .content-loop .thumbnail-link {
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    margin: 0;
  }
  
  .content-loop .thumbnail-wrap {
    height: 100vh;
    width: 100vw;
  }
  
  .content-loop .thumbnail-wrap img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
  
  /* Video play state overlay for mobile */
  .content-loop .video-play-state {
    width: 100px;
    height: 100px;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Hide any overflow from video containers */
  .content-loop .video-container {
    overflow: hidden;
  }
  
  /* Ensure proper stacking order */
  .content-loop .video-container iframe,
  .content-loop .video-container video {
    z-index: 1;
	  width: 100%;!important;
  }
  
  .content-loop .entry-header {
    z-index: 10;
  }
}

/* @media only screen and (min-width: 318px) { 
	.video-mute-toggle {
		top: 584px;
        right: 100px;
	}
}

@media only screen and (min-width: 360px) { 
	.video-mute-toggle {
		top: 584px;
        right: 130px;
	}
}

@media only screen and (min-width: 390px) { 
	.video-mute-toggle {
		top: 584px;
        right: 160px;
	}
}

@media only screen and (min-width: 420px) { 
	.video-mute-toggle {
		top: 584px;
        right: 195px;
	}
}

@media only screen and (min-width: 450px) { 
	.video-mute-toggle {
		top: 584px;
        right: 235px;
	}
} */




