@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --green: #174d35;
  --green-dark: #0c2f20;
  --green-light: #286b48;
  --cream: #f4f0e6;
  --cream-light: #faf8f2;
  --gold: #c7a65a;
  --black: #111613;
  --gray: #68716b;
  --border: #dfe2db;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--black);
  background: var(--cream-light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", sans-serif;
  line-height: 1.1;
}

h1 em,
h2 em {
  color: var(--gold);
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* HEADER */

.header {
  height: 82px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.logo > span:last-child {
  color: var(--gold);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-wrap: nowrap;
}

nav a {
  font-size: 13px;
  font-weight: 600;
  color: #4e5650;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--green);
}

.nav-btn {
  background: var(--green);
  color: white;
  padding: 12px 19px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}

/* HERO */

.hero {
  min-height: 690px;
  position: relative;
  color: white;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* teen layers hai yahan, neeche se upar: photos (z-index 0) -> dark
   gradient overlay (1) taki text padha ja sake -> actual heading/button
   content (2). agar z-index order galat kiya to text photo ke peeche
   chala jayega ya overlay button ke click ko block kar dega */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5,28,18,.93), rgba(5,28,18,.55), rgba(5,28,18,.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  display: block;
  margin-bottom: 16px;
}

.eyebrow.light {
  color: #c7a65a;
}

.hero .eyebrow {
  color: #d6b867;
}

.hero h1 {
  font-size: clamp(50px, 7vw, 88px);
  letter-spacing: -4px;
  margin-bottom: 25px;
}

.hero p {
  max-width: 570px;
  color: #e7e9e2;
  font-size: 18px;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  border: 0;
  padding: 15px 23px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-light {
  background: white;
  color: var(--green);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--green);
}

.hero-card {
  width: 250px;
  padding: 25px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  margin-top: 230px;
  position: relative;
}

.hero-card span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #d9c275;
  margin-bottom: 12px;
}

.hero-card strong {
  display: block;
  font-family: "Manrope";
  font-size: 23px;
}

.hero-card small {
  display: block;
  margin: 7px 0 18px;
  color: #ddd;
}

.hero-card a {
  font-size: 12px;
  font-weight: 700;
}

/* STATS */

.stats {
  background: var(--green);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid > div {
  padding: 27px 15px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stats-grid strong {
  display: block;
  color: #d4b25d;
  font: 800 31px "Manrope";
}

.stats-grid span {
  color: #d4ddd7;
  font-size: 12px;
}

/* SECTIONS */

.section {
  padding: 100px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: clamp(35px, 4vw, 52px);
  letter-spacing: -2px;
}

.section-heading > p {
  max-width: 430px;
  color: var(--gray);
}

.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

/* CATEGORIES */

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 15px;
}

.category-card {
  min-height: 390px;
  padding: 32px;
  display: flex;
  align-items: end;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #284c38, #8d9d78);
  background-size: cover;
  background-position: center;
  transition: transform .3s;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card > div {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 12px;
  color: #d8bb6c;
}

.category-card h3 {
  font-size: 35px;
  margin: 10px 0;
}

.category-card p {
  color: #eef0e9;
  font-size: 14px;
  max-width: 280px;
  margin-bottom: 22px;
}

.category-card .category-tagline {
  font-size: 13px;
  color: #d7ded1;
  font-style: italic;
  margin-bottom: 12px;
  max-width: 260px;
}

.category-card b {
  font-size: 13px;
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: .2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15,40,25,.08);
  cursor: pointer;
}

/* is trick se pura card clickable ban jata hai lekin actual <a> tag ek
   hi rehta hai (wahi "Details" wala link) - poore card ko <a> mein
   lapetna easy hota lekin html mein <a> ke andar <a> allowed nahi hai,
   isliye ye ::after wala overlay approach use kiya */
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-image {
  height: 270px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.machine-placeholder {
  color: rgba(255,255,255,.35);
  font: 800 42px "Manrope";
  letter-spacing: -2px;
  transform: rotate(-8deg);
}

.tractor-img {
  background:
    radial-gradient(circle at 70% 25%, #d9c582 0 7%, transparent 7.5%),
    linear-gradient(145deg, #375d42, #a69a67);
}

.harvester-img {
  background: linear-gradient(145deg, #5d754e, #c19d53);
}

.implement-img {
  background: linear-gradient(145deg, #384f43, #8e8a6d);
}

.badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: var(--gold);
  color: white;
  padding: 6px 9px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.product-info {
  padding: 22px;
}

.product-info > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--gray);
}

.product-info h3 {
  margin: 7px 0 17px;
  font-size: 20px;
}

.specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.specs span {
  background: #f1f2ed;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 10px;
  color: #536058;
}

.product-bottom {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-bottom strong {
  font: 700 18px "Manrope";
}

.product-bottom a {
  font-size: 12px;
  color: var(--green);
  font-weight: 800;
}

/* DARK SECTION */

.dark-section {
  background: var(--green-dark);
  color: white;
  padding: 100px 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.dark-section h2 {
  font-size: 50px;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.dark-section p {
  color: #b8c7bd;
  max-width: 520px;
  margin-bottom: 25px;
}

.benefits {
  display: grid;
  gap: 20px;
}

.benefits > div {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 20px 0;
}

.benefits b,
.values-grid span {
  color: var(--gold);
  font-size: 12px;
}

.benefits h3 {
  margin: 7px 0;
}

.benefits p {
  font-size: 13px;
  margin: 0;
}

/* CTA */

.cta {
  background: var(--cream);
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(40px, 5vw, 65px);
  margin-bottom: 30px;
  letter-spacing: -3px;
}

/* PAGE HERO */

.page-hero {
  background: var(--green-dark);
  color: white;
  padding: 100px 0;
}

.page-hero h1 {
  font-size: clamp(50px, 7vw, 82px);
  letter-spacing: -4px;
  margin-bottom: 20px;
}

.page-hero p {
  color: #bdc9c0;
  max-width: 570px;
}

/* FILTERS */

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.catalog-toolbar > div:first-child span {
  color: var(--gray);
}

.filters {
  display: flex;
  gap: 10px;
}

select,
input,
textarea {
  font: inherit;
}

.filters select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--border);
  background: white;
  padding: 13px;
  border-radius: 4px;
  outline: none;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* PRODUCT DETAIL */

.product-detail {
  padding: 90px 0;
  background: var(--cream);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.detail-image {
  height: 600px;
  border-radius: 8px;
}

.detail-image .machine-placeholder {
  font-size: 70px;
}

.detail-content h1 {
  font-size: clamp(42px, 5vw, 65px);
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.detail-description {
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 25px;
}

.price {
  font: 800 30px "Manrope";
  margin-bottom: 30px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  margin-bottom: 25px;
}

.detail-specs div {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.detail-specs span {
  display: block;
  color: var(--gray);
  font-size: 11px;
}

.detail-specs strong {
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.finance-box {
  margin-top: 25px;
  padding: 20px;
  background: white;
  border-left: 3px solid var(--gold);
}

.finance-box p {
  color: var(--gray);
  font-size: 13px;
  margin: 5px 0;
}

.finance-box a {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.spec-panel {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.spec-panel h3 {
  font-size: 16px;
}

.spec-panel .detail-specs {
  margin-top: 14px;
  margin-bottom: 0;
}

/* ABOUT */

.about-split {
  align-items: start;
}

.about-split h2 {
  font-size: 48px;
}

.about-split p {
  color: var(--gray);
  margin-bottom: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.values-grid > div {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 20px;
}

.values-grid h3 {
  margin: 12px 0;
  font-size: 25px;
}

.values-grid p {
  font-size: 14px;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.contact-grid h2 {
  font-size: 52px;
  margin-bottom: 40px;
}

.contact-details {
  display: grid;
  gap: 25px;
}

.contact-details span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gray);
  font-weight: 800;
}

.contact-details strong {
  font-size: 15px;
}

.contact-form {
  background: white;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: grid;
  gap: 17px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.contact-form textarea {
  resize: vertical;
}

.form-success {
  display: none;
  background: #e5f2e9;
  color: var(--green);
  padding: 13px;
  font-size: 13px;
  border-radius: 4px;
}

/* FOOTER */

.footer {
  background: #0a2116;
  color: white;
  padding-top: 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer .logo {
  color: white;
}

.footer p,
.footer a {
  color: #a9b8ae;
  font-size: 13px;
}

.footer-grid > div > p {
  margin-top: 15px;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 13px;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  color: #718078;
  font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 850px) {

  .header {
    height: 70px;
  }

  nav,
  .nav-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 25px rgba(15,40,25,.08);
    padding: 10px 0;
    z-index: 20;
  }

  nav.mobile-open a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }

  nav.mobile-open a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-card {
    display: none;
  }

  .hero h1 {
    font-size: 55px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid,
  .product-grid,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  /* mobile pe .detail-media (gallery + spec panel wala wrapper) ko
     display:contents kar diya hai - isse wo apna box khatam kar deta
     hai aur uske andar ke gallery/spec-panel seedha .detail-grid ke
     bachche ban jate hai, tabhi neeche wala order: waala trick kaam
     karega, warna sirf wrapper hi reorder hota, andar wale nahi */
  .detail-media {
    display: contents;
  }

  .gallery-container {
    order: 1;
  }

  .detail-content {
    order: 2;
  }

  .spec-panel {
    order: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-image {
    height: 450px;
  }
}

@media (max-width: 560px) {

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 65px 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 47px;
    letter-spacing: -2px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid,
  .category-grid,
  .product-grid,
  .catalog-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 300px;
  }

  .section-heading,
  .catalog-toolbar {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .filters {
    margin-top: 15px;
  }

  .filters select {
    width: 50%;
  }

  .detail-image {
    height: 330px;
  }

  .detail-image .machine-placeholder {
    font-size: 42px;
  }

  .spec-table {
    grid-template-columns: 1fr;
  }

  .contact-grid h2 {
    font-size: 43px;
  }

  .contact-form {
    padding: 22px;
  }
}

/* DYNAMIC PRODUCT IMAGES */

.product-real-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-real-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.detail-image {
  position: relative;
  overflow: hidden;
}

.detail-image .badge {
  z-index: 2;
}

.product-image {
  background: #e8e8e2;
}

/* =========================================================
   PRODUCT GALLERY & LIGHTBOX
   ========================================================= */

.detail-grid {
  align-items: start;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2ed;
  cursor: zoom-in;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-main .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 3;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 19, 0.65);
  color: #ffffff;
  border: none;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 4;
  backdrop-filter: blur(4px);
}

.gallery-nav-btn:hover {
  background: rgba(18, 22, 19, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-prev {
  left: 12px;
}

.gallery-nav-next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18, 22, 19, 0.75);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 4;
  backdrop-filter: blur(4px);
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(18, 22, 19, 0.75);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.gallery-main:hover .gallery-zoom-badge {
  opacity: 1;
}

.gallery-thumbs-wrapper {
  position: relative;
  width: 100%;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.gallery-thumb {
  flex: 0 0 76px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #ddd;
  opacity: 0.6;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--green, #23472f);
  opacity: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "+N more" pill — same size as a regular thumb */
.gallery-thumb-more {
  flex: 0 0 76px;
  height: 56px;
  border-radius: 6px;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  opacity: 0.8;
  cursor: default;
  user-select: none;
}

/* Lightbox Modal */
dialog.lightbox-dialog {
  border: none;
  padding: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

dialog.lightbox-dialog::backdrop {
  background: rgba(10, 14, 11, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 100;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 20;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-footer {
  position: absolute;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  z-index: 20;
}

@media (max-width: 900px) {
  .gallery-main {
    height: 380px;
  }
}

@media (max-width: 560px) {
  .gallery-main {
    height: 260px;
  }
  .gallery-thumb {
    flex: 0 0 62px;
    height: 46px;
  }
  .gallery-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .lightbox-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

