:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #a7b0c5;
  --accent: #ff8a5b;
  --accent-2: #6c63ff;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #17304d 0%, var(--bg) 65%, #02060c 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
  padding-bottom: 3rem;
}

img {
  max-width: 100%;
 
  
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 0 0 4.5rem;
  margin-top: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(12px);
}

/* Make the nav full width while keeping inner container spacing */
.nav.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0;
}

.page-home .nav {
  background: rgba(7, 17, 31, 0.9);
}

.page-about .nav {
  background: rgba(30, 40, 55, 0.95);
}

.page-services .nav {
  background: rgba(20, 30, 45, 0.95);
}

.page-booking .nav {
  background: rgba(18, 24, 40, 0.95);
}

.page-gallery .nav {
  background: rgba(12, 20, 30, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
  white-space: normal;
}

.brand img,
.logo {
  height:40px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
}

.page-admin .nav {
  position: relative;
  z-index: 100001;
}

.page-admin .menu-toggle {
  display: flex;
  position: relative;
  z-index: 100001;
}

.page-admin .nav-links {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 75vh;
  padding: 4.5rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100000;
  overflow-y: auto;
  border-bottom-left-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
}

.page-admin .nav-links.open {
  display: flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.24rem;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.4rem;
  height: 2px;
  background: var(--text);
  display: block;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: #78c9ff;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  width: auto;
  min-width: 180px;
  padding: 0.8rem 1.2rem;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: transform 200ms ease, background 200ms ease;
}
.form-control{
  height: 50px;
  padding: 10px;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions,
  .hero-actions_book {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 2.1rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffb36b);
  color: #111;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #81b604, var(--accent));
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-card,
.info-card,
.portfolio-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.card-pill {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.2);
  color: #c8c1ff;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.section {
  padding: 2rem 0 3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stats > div {
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.stats span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin: 0;
}

.card-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-gallery .portfolio-grid {
  gap: 7px;
}

.page-gallery .portfolio-card {
  margin: 0;
  padding: 10px;
}

.page-gallery .portfolio-card figcaption {
  padding: 0.75rem;
}

.page-gallery .portfolio-card > img,
.page-gallery .portfolio-card > video {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-about .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.page-about .info-card {
  min-height: 180px;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.page-about .info-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.page-about .info-card p {
  margin: 0;
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--muted);
}

.feature-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  padding: 1rem;
}

.feature-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 210 / 297;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
}

.feature-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .page-about .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-about .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .page-about .info-card {
    min-height: 220px;
    padding: 1.5rem 1.25rem;
  }
}

.service-highlight-section {
  margin-top: 2rem;
}

.service-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}




/* banner image */
.service-highlight-image img {

  height: 650px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 20px 50px rgba(250, 248, 248, 0.25);
    object-fit:cover
}

/* Responsive adjustments for the service banner */
@media (max-width: 768px) {
  .service-highlight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-highlight-image {
    display: block;
    width: 100%;
  }

  .service-highlight-image img {
    height: auto;
    max-height: 260px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
  }
}

.service-highlight-grid ul {
  list-style: disc inside;
  margin-top: 1rem;
  color: var(--muted);
}

.info-card,
.portfolio-card {
  padding: 1.2rem;
  border-radius: 1rem;
}

.map-container {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
}

.map-container iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.info-card p,
.portfolio-card p {
  color: var(--muted);
}

.contact {
  display: grid;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: 1rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  width: 100%;
}

.contact-form .date-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: nowrap;
}

.contact-form .date-label {
  color: #9ba8c2;
  font-size: 0.95rem;
  white-space: nowrap;
}

.contact-form .date-field input {
  flex: 1;
  min-width: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 138, 91, 0.45);
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ba8c2;
}

@media (max-width: 480px) {
  .contact-form .date-field {
    gap: 0.5rem;
  }

  .contact-form .date-label {
    font-size: 0.9rem;
  }
}

.form-message {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.95rem;
}

.form-message.success {
  color: #8dffb2;
}

.form-message.error {
  color: #ff9b9b;
}

.form-message.info {
  color: #b7cdff;
}

.booking-followup {
  margin-top: 0.5rem;
  color: var(--muted);
}

.booking-followup a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.contact-item {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: #9ba8c2;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-item .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #9ba8c2;
}
.contact-item svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.contact-item:hover,
.contact-item:focus {
  color: #fff;
}

/* End footer contact icons */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 0;
  border-radius: 999px;
  width: 2.8rem;
  height: 2.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.footer {
  padding: 3rem 0 0;
  color: #c8cad0;
  background: #000;
  text-align: left;
  margin-top: auto;
}

.footer .footer-content {
  padding: 0 0 2rem;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer .footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

.footer .footer-links a,
.footer .footer-links a:visited {
  color: #9ba8c2;
  text-decoration: none;
}

.footer .footer-links a:hover {
  color: #fff;
}

.footer small,
.footer p,
.footer div {
  color: #c8cad0;
}

.footer-bottom {
  background: #3d1f0f;
  padding: 1rem 0;
  text-align: center;
  color: #f4e7d3;
  font-size: 0.95rem;
  margin-top: 20px;
  margin-bottom: 0;
}
.contact-info a{
  text-decoration: none;
  color: #9ba8c2;

}
.contact-info a:hover{
  color: #fff;
}

.footer-bottom a {
  color: #f4e7d3;
  text-decoration: none;
}

@media (max-width: 820px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .hero-content,
  .portfolio-grid,
  .stats,
  .service-highlight-grid {
    grid-template-columns: 1fr;
  }

  .service-highlight-image {
    order: 2;
    width: 100%;
  }

  .service-highlight-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
  }

  .nav {
    border-radius: 1rem;
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav .brand {
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 9998;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    padding: 4.5rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    overflow-y: auto;
    border-bottom-left-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
  }

  .nav-panel {
    width: 100%;
    padding: 0;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 100001;
    overflow: visible;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.gallery-img img{
 
 
  object-fit: cover;
}
.hero-actions_book {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.admin-heading {
  margin-bottom: 2rem;
}

.admin-heading h1 {
  margin-bottom: 0.75rem;
}

.admin-heading > p:last-child,
.admin-login-panel > p,
.admin-muted {
  color: var(--muted);
}

.admin-login-panel {
  width: min(100%, 440px);
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.admin-panel-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 1rem;
  background: rgba(108, 99, 255, 0.2);
  font-size: 1.5rem;
}

.admin-login-panel h2,
.admin-toolbar h2 {
  margin: 0 0 0.5rem;
}

.admin-login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.admin-login-form label {
  font-weight: 600;
}

.admin-login-form input,
.admin-search input,
.admin-status-filter select,
.admin-status-select {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #101c2d;
  color: var(--text);
  font: inherit;
}

.admin-login-form .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.admin-login-form .form-message {
  text-align: center;
}

.reset-back-link {
  width: 100%;
  margin-top: 1rem;
}

.admin-home-link {
  margin-top: 1rem;
}

.admin-notice {
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 179, 107, 0.4);
  border-radius: 0.8rem;
  background: rgba(255, 138, 91, 0.1);
  color: #ffe0c2;
}

.admin-account-panel {
  margin-bottom: 1.5rem;
}

.admin-account-panel > .btn {
  min-width: 0;
  cursor: pointer;
  font: inherit;
}

.admin-account-panel .admin-login-form {
  width: min(100%, 440px);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
}

.admin-account-panel .admin-login-form[hidden] {
  display: none;
}

.admin-account-panel .admin-login-form h2,
.admin-account-panel .admin-login-form p {
  margin-top: 0;
}

.admin-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-account-actions .btn {
  min-width: 0;
  flex: 1 1 180px;
  cursor: pointer;
  font: inherit;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-toolbar p {
  margin: 0;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-toolbar-actions .btn {
  min-width: 0;
  cursor: pointer;
  font: inherit;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-stat-card strong {
  font-size: 1.8rem;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-search input,
.admin-status-filter select {
  width: 100%;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.admin-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: #bac6dd;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong,
.admin-cell-secondary {
  display: block;
}

.admin-cell-secondary {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.admin-details-cell {
  max-width: 240px;
  color: #d3d9e7;
  overflow-wrap: anywhere;
}

.admin-status-select {
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.admin-delete-button {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 155, 155, 0.45);
  border-radius: 0.55rem;
  background: rgba(255, 155, 155, 0.08);
  color: #ffb2b2;
  font: inherit;
  cursor: pointer;
}

.admin-delete-button:hover {
  background: rgba(255, 155, 155, 0.18);
}

.admin-empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.admin-empty-state > span {
  font-size: 2rem;
}

.admin-empty-state h3 {
  margin: 0.5rem 0;
}

.admin-empty-state p {
  margin: 0;
  color: var(--muted);
}

.admin-error {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 155, 155, 0.45);
  border-radius: 0.75rem;
  background: rgba(255, 155, 155, 0.1);
  color: #ffb2b2;
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem max(1rem, calc((100% - 1120px) / 2));
  background: #000;
  color: var(--muted);
}

.admin-footer a {
  color: #c8c1ff;
}

.cms-page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.cms-page-button {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.cms-page-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}

.cms-page-actions {
  margin-bottom: 1rem;
}

.cms-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cms-add-media-form {
  display: grid;
  max-width: 720px;
  gap: 0.75rem;
  padding: 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--panel);
}

.cms-add-media-form[hidden] {
  display: none;
}

.cms-fields .cms-add-project-card {
  max-width: none;
  margin: 0;
}

.cms-add-media-form h3 {
  margin: 0 0 0.25rem;
}

.cms-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .cms-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cms-fields > .cms-field-card:not(.cms-media-field-card) {
    grid-column: 1 / -1;
  }
}

.cms-field-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
}

.cms-field-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cms-field-page {
  margin: 0;
  font-size: 0.85rem;
}

.cms-text-input,
.cms-alt-input,
.cms-file-input {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #101c2d;
  color: var(--text);
  font: inherit;
}

.cms-text-input {
  resize: vertical;
}

.cms-media-preview {
  width: 100%;
  max-height: none;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.25);
}

.cms-input-label {
  margin-bottom: -0.45rem;
  color: #d3d9e7;
  font-size: 0.9rem;
  font-weight: 600;
}

.cms-save-button {
  min-width: 0;
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .admin-main {
    padding-top: 2rem;
  }

  .admin-login-panel {
    padding: 1.5rem;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-footer {
    flex-direction: column;
  }

  .cms-fields {
    grid-template-columns: 1fr;
  }

}

.portfolio-card > img,
.portfolio-card > video {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.25);
}

.other-project-link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.other-project-link img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.25);
}

.other-project-caption {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
}

.other-project-caption span {
  color: var(--muted);
}

.other-project-caption .other-project-cta {
  color: var(--accent);
  font-weight: 700;
}

.portfolio-card figcaption .other-project-cta {
  color: var(--accent);
  font-weight: 700;
}

.other-project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}