/*
Theme Name: dProyectos Theme
Theme URI: https://dproyectos.es/
Author: Antigravity
Author URI: https://google.com
Description: Tema a medida y de alta performance para el Estudio de Arquitectura dProyectos, Cádiz.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dproyectos
*/

/* --- DESIGN SYSTEM TOKENS (CSS VARIABLES) --- */
:root {
  /* Colors */
  --color-primary: #36656d;
  --color-primary-container: #b0e0e9;
  --color-on-primary-container: #36656c;
  --color-secondary: #136779;
  --color-secondary-container: #a4eaff;
  --color-background: #f9f9f9;
  --color-surface: #f9f9f9;
  --color-surface-cloud: #fafafa;
  --color-surface-container: #eeeeee;
  --color-surface-container-low: #f3f3f3;
  --color-surface-container-high: #e8e8e8;
  --color-surface-container-highest: #e2e2e2;
  --color-surface-container-lowest: #ffffff;
  --color-on-surface: #1b1b1b;
  --color-on-surface-variant: #40484a;
  --color-inverse-surface: #303030;
  --color-pure-white: #ffffff;
  --color-border-subtle: #d9d9d9;
  --color-outline: #70787a;
  --color-outline-variant: #c0c8c9;
  --color-black: #000000;
  --color-on-primary: #ffffff;
  --color-on-secondary: #ffffff;

  /* Typography */
  --font-headings: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing Scale */
  --spacing-unit: 4px;
  --spacing-gutter: 24px;
  --spacing-section-padding: 60px;
  --spacing-max-width: 1200px;
  --spacing-margin-mobile: 16px;

  /* Border Radii */
  --radius-sm: 2px;
  --radius-default: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

/* --- RESET & GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--color-background);
  color: var(--color-on-surface);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
}

.font-headline-lg {
  font-family: var(--font-headings);
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  line-height: 1.2;
}

.font-headline-md {
  font-family: var(--font-headings);
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  line-height: 1.3;
}

.font-headline-sm {
  font-family: var(--font-headings);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.4;
}

.font-body-lg {
  font-family: var(--font-body);
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  line-height: 1.6;
}

.font-body-md {
  font-family: var(--font-body);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.6;
}

.font-label-bold {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* --- LAYOUT & SPACING --- */
.max-w-max-width {
  max-width: var(--spacing-max-width);
  margin-left: auto;
  margin-right: auto;
}

.px-gutter {
  padding-left: var(--spacing-gutter);
  padding-right: var(--spacing-gutter);
}

.py-section-padding {
  padding-top: var(--spacing-section-padding);
  padding-bottom: var(--spacing-section-padding);
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
  .md\:items-end { align-items: flex-end; }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* Margin and Padding utilities */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }
.mb-24 { margin-bottom: 96px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-20 { margin-top: 80px; }

.pt-0 { padding-top: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-12 { padding-bottom: 48px; }
.pb-16 { padding-bottom: 64px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-12 { padding: 48px; }
.p-24 { padding: 96px; }

.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 {
  height: 48px;
  width: 48px;
}
.h-14 { height: 56px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-24 { height: 96px; }
.w-full { width: 100%; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- BRANDING & COLOR CLASSES --- */
.bg-background { background-color: var(--color-background); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-cloud { background-color: var(--color-surface-cloud); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-tertiary-container { background-color: var(--color-tertiary-container); }
.bg-inverse-surface { background-color: var(--color-inverse-surface); }
.bg-on-background { background-color: var(--color-on-surface); }
.bg-black { background-color: var(--color-black); }
.bg-pure-white { background-color: var(--color-pure-white); }
.bg-transparent { background-color: transparent; }

.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-primary { color: var(--color-primary); }
.text-on-primary { color: var(--color-on-primary); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-on-secondary-container { color: var(--color-on-secondary-container); }
.text-on-tertiary-container { color: var(--color-on-tertiary-container); }
.text-pure-white { color: var(--color-pure-white); }
.text-surface-variant { color: var(--color-border-subtle); }
.text-on-background { color: var(--color-on-surface); }

.border { border: 1px solid var(--color-border-subtle); }
.border-b { border-bottom: 1px solid var(--color-border-subtle); }
.border-b-2 { border-bottom: 2px solid var(--color-border-subtle); }
.border-t { border-top: 1px solid var(--color-border-subtle); }
.border-2 { border: 2px solid var(--color-border-subtle); }
.border-outline-variant {
    /* border: 1px solid var(--color-outline-variant); */
}
.border-outline { border: 1px solid var(--color-outline); }
.border-pure-white { border: 2px solid var(--color-pure-white); }

/* --- COMPONENT STYLING --- */
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Buttons */
button, .btn {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.bg-primary:hover {
  background-color: var(--color-secondary);
}

.bg-primary-container:hover {
  background-color: var(--color-primary);
  color: var(--color-pure-white);
}

/* Headers transition */
header {
  transition: all 0.3s ease-in-out;
}

header.transparent {
  background-color: transparent;
  border-bottom-color: transparent;
}

header.transparent .nav-link {
  color: var(--color-pure-white);
}

header.transparent .nav-link.active-link {
  border-bottom-color: var(--color-pure-white);
  color: var(--color-pure-white);
}

header.scrolled, header.header-scrolled {
  background-color: rgba(27, 27, 27, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

header.scrolled .nav-link, header.header-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

header.scrolled .nav-link:hover, header.header-scrolled .nav-link:hover {
  color: var(--color-pure-white);
}

header.scrolled .nav-link.active-link, header.header-scrolled .nav-link.active-link {
  border-bottom-color: var(--color-pure-white);
  color: var(--color-pure-white);
}

.nav-link {
  border-bottom: 2px solid transparent;
  padding-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.nav-link.active-link {
  border-bottom-color: var(--color-pure-white) !important;
  color: var(--color-pure-white) !important;
}

/* Header override for Contact page (keeps header solid black) */
body.page-template-page-contacto header#main-header {
  background-color: rgba(27, 27, 27, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

body.page-template-page-contacto header#main-header .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.page-template-page-contacto header#main-header .nav-link:hover {
  color: var(--color-pure-white) !important;
}

body.page-template-page-contacto header#main-header .nav-link.active-link {
  border-bottom-color: var(--color-pure-white) !important;
  color: var(--color-pure-white) !important;
}

/* Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Form inputs */
input, textarea {
  font-family: var(--font-body);
  transition: all 0.2s ease-in-out;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"] {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(176, 224, 233, 0.5);
  outline: none;
}

/* --- ANIMATIONS & INTERACTIVE STATES --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

.hero-zoom {
  animation: slow-zoom 20s infinite alternate;
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Parallax scroll effect */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-img, .parallax-image {
  will-change: transform;
  height: 120% !important;
  top: -10%;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-img, .parallax-image {
    transform: none !important;
    height: 100% !important;
    top: 0 !important;
  }
}

/* Grayscale hover transition */
.project-card-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image {
  filter: grayscale(100%);
  transform: scale(1.03);
}

.filter-btn {
  color: var(--color-on-surface-variant);
  border-bottom: 2px solid transparent;
}

.filter-btn.active {
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.group:hover .group-hover\:translate-x-2 {
  transform: translateX(8px);
}

.group-hover\:translate-x-2 {
  transition: transform 0.3s ease-in-out;
}

/* Team Member hover */
.grayscale {
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.group:hover .grayscale {
  filter: grayscale(0%);
}

.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.transition-colors { transition-property: color, background-color, border-color; }

.hover\:scale-105:hover { transform: scale(1.05); }

/* --- OTHER GENERAL UTILITIES --- */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 32px; }
.bottom-12 { bottom: 48px; }
.left-gutter { left: var(--spacing-gutter); }
.left-1/2 { left: 50%; }
.-translate-x-1/2 { transform: translateX(-50%); }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.text-center { text-align: center; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
.mix-blend-multiply { mix-blend-mode: multiply; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.italic { font-style: italic; }

.bg-gradient-to-t {
  background: linear-gradient(to top, rgba(27,27,27,0.7) 0%, rgba(27,27,27,0) 100%);
}

.hidden { display: none; }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:hidden { display: none !important; }
}

.space-y-2 > * + * { margin-top: 8px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.space-y-12 > * + * { margin-top: 48px; }

.space-x-8 > * + * { margin-left: 32px; }
.gap-x-8 { column-gap: 32px; }
.gap-x-12 { column-gap: 48px; }
.gap-y-4 { row-gap: 16px; }
.gap-y-6 { row-gap: 24px; }

/* Custom Additions */
.py-16 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.pb-50px {
  padding-bottom: 50px !important;
}

/* Header logo sizing - 25% larger (base height 40px -> 50px) */
.header-logo-wrap {
  height: 50px;
  display: flex;
  align-items: center;
}

#header-logo {
  height: 50px !important;
  width: auto;
}

/* Footer layout & logo top padding (30px more distance to top border) */
footer {
  padding-top: 94px !important; /* 64px + 30px */
  padding-bottom: 64px !important;
}

/* Tailwind-style arbitrary layout & typography utility definitions */
.h-\[50vh\] {
  height: 50vh !important;
}
.h-\[65vh\] {
  height: 65vh !important;
}
.min-h-\[350px\] {
  min-height: 350px !important;
}
.min-h-\[400px\] {
  min-height: 400px !important;
}

/* Color & transparency overlays */
.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2) !important;
}
.bg-black\/30 {
  background-color: rgba(0, 0, 0, 0.3) !important;
}
.bg-black\/40 {
  background-color: rgba(0, 0, 0, 0.4) !important;
}
.bg-pure-white\/90 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Font sizes and icons */
.text-xs {
  font-size: 0.75rem !important;
}
.text-sm {
  font-size: 0.875rem !important;
}
.text-4xl {
  font-size: 2.25rem !important;
}
.text-\[10px\] {
  font-size: 10px !important;
}
.text-\[11px\] {
  font-size: 11px !important;
}
.text-\[20px\] {
  font-size: 20px !important;
}

@media (min-width: 768px) {
  .md\:text-\[54px\] {
    font-size: 54px !important;
  }
  .md\:text-\[64px\] {
    font-size: 64px !important;
  }
}

/* Mobile Navigation Drawer & Backdrop */
#mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  background-color: var(--color-black);
  color: var(--color-pure-white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#mobile-drawer-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.mt-auto {
  margin-top: auto !important;
}

/* Mobile Hero alignments (position content at the bottom with 50px spacing) */
@media (max-width: 767px) {
  /* Homepage Hero text at bottom with 50px spacing */
  section.relative.h-screen.flex.items-center.justify-center {
    align-items: flex-end !important;
    padding-bottom: 50px !important;
  }
  
  /* Hide the scroll arrow indicator on mobile to avoid overlap */
  section.relative.h-screen .animate-bounce {
    display: none !important;
  }

  /* Projects & Blog archive Hero text at bottom with 50px spacing */
  section.relative.h-screen .relative.z-10.h-full.flex.flex-col {
    justify-content: flex-content !important; /* fallback */
    justify-content: flex-end !important;
    padding-bottom: 50px !important;
  }

  /* Nosotros Hero text 50px from bottom */
  .absolute.bottom-12 {
    bottom: 50px !important;
  }
}

/* Aspect square layout utility */
.aspect-square {
  aspect-ratio: 1 / 1 !important;
}

/* Lightbox Modal & Slideshow Styles */
#lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

#lightbox-modal.active #lightbox-img {
  transform: scale(1);
}

/* Lightbox Buttons */
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-pure-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.2s;
  z-index: 105;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox-btn .material-symbols-outlined {
  font-size: 30px;
}

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

#lightbox-prev {
  left: -80px;
}

#lightbox-next {
  right: -80px;
}

/* Responsive adjustments for Lightbox buttons */
@media (max-width: 1024px) {
  #lightbox-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  #lightbox-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  #lightbox-close {
    top: 20px;
    right: 20px;
    position: fixed;
  }
}

/* Sidebar Slider Styling Enhancements */
#sidebar-gallery-slider #sidebar-slider-prev,
#sidebar-gallery-slider #sidebar-slider-next {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.2s, transform 0.2s;
}

#sidebar-gallery-slider:hover #sidebar-slider-prev,
#sidebar-gallery-slider:hover #sidebar-slider-next {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  #sidebar-gallery-slider #sidebar-slider-prev,
  #sidebar-gallery-slider #sidebar-slider-next {
    opacity: 1;
    pointer-events: auto;
  }
}
