.form-control-dark {
  border-color: var(--bs-gray);
}
.form-control-dark:focus {
  border-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .25);
}

.text-small {
  font-size: 85%;
}

.dropdown-toggle:not(:focus) {
  outline: 0;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

a:link {
  color: #0017bb;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: #001799;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #eab500;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: #001764;
  background-color: transparent;
  text-decoration: underline;
}

article {
  float: left;
  padding: 30px;
  text-align: left;
  width: 70%;
}

aside {
  float: left;
}

html {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.22), transparent 20%),
    radial-gradient(circle at top left, rgba(129, 178, 154, 0.18), transparent 24%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 28%, #ffffff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  background-color: #f4f7fb;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  background: transparent;
  background-color: transparent;
}

.gallery-page {
  margin-left: 24px;
  margin-right: 24px;
  color: #1c2430;
}

.gallery-intro {
  max-width: 56rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.gallery-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 1px solid #d8dee8;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.08);
}

.gallery-section h2 {
  margin-bottom: 0.5rem;
}

.gallery-section p {
  margin-bottom: 1.5rem;
}

.gallery-card {
  border: 1px solid #d8dee8;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.08);
  overflow: hidden;
}

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

.gallery-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.gallery-card img,
.gallery-card embed {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.gallery-card figcaption {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #3d4958;
  background: #fff;
  border-top: 1px solid #e3e8ef;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  transition: max-height 180ms ease, padding 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.gallery-card:hover figcaption,
.gallery-card:focus-within figcaption {
  max-height: 22rem;
  padding-top: 1rem;
  padding-bottom: 1.1rem;
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-wide .gallery-card-media {
  min-height: 320px;
}

.gallery-card-wide img {
  max-height: none;
  width: 100%;
}

@media (max-width: 767.98px) {
  .gallery-page {
    margin-left: 12px;
    margin-right: 12px;
  }

  .gallery-section {
    padding: 1rem;
  }
}

@media (hover: none) {
  .gallery-card figcaption {
    max-height: 22rem;
    padding-top: 1rem;
    padding-bottom: 1.1rem;
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page {
  margin-left: 24px;
  margin-right: 24px;
  color: #1c2430;
}

.home-shell {
  padding-bottom: 3rem;
}

.home-hero {
  padding: 2rem 0 0.5rem;
}

.home-card {
  border: 1px solid #d8dee8;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(18, 38, 63, 0.1);
  overflow: hidden;
}

.home-content {
  padding: 2rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.home-photo-wrap {
  position: relative;
}

.home-photo {
  width: 100%;
  min-height: 320px;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 28px rgba(18, 38, 63, 0.12);
}

.home-lead {
  margin-bottom: 1.1rem;
  font-size: 1.14rem;
  line-height: 1.75;
  color: #294261;
}

.home-body {
  display: grid;
  gap: 1rem;
}

.home-body p {
  margin: 0;
  line-height: 1.8;
  color: #27425f;
}

.home-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.home-meta-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-meta-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7890;
}

.home-meta-item p {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #31465f;
}

@media (max-width: 991.98px) {
  .home-content {
    padding: 1.5rem;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .home-page {
    margin-left: 12px;
    margin-right: 12px;
  }

  .home-photo {
    min-height: 260px;
  }

  .home-content {
    padding: 1.25rem;
  }
}

.profile-page {
  margin-left: 24px;
  margin-right: 24px;
  color: #1c2430;
}

.profile-shell {
  padding-bottom: 3rem;
}

.profile-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid #cfd8e6;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(18, 38, 63, 0.1);
}

.profile-section h2 {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #17365d;
  border-bottom: 3px solid #e3b23c;
}

.profile-section h1 {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #17365d;
  border-bottom: 3px solid #e3b23c;
}

.profile-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.profile-photo {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.profile-photo img {
  display: block;
  width: 100%;
  max-height: 260px;
  padding: 0;
  object-fit: contain;
}

.profile-list {
  margin: 0;
  padding-left: 1.25rem;
}

.profile-list li {
  margin-bottom: 0.85rem;
  line-height: 1.72;
  color: #203a59;
}

.profile-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .profile-page {
    margin-left: 12px;
    margin-right: 12px;
  }

  .profile-section {
    padding: 1.2rem 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .profile-intro-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 320px;
  }
}
