@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: large;
  letter-spacing: 0.05rem;
  color: white;
  background-color: rgb(35, 35, 35);
  scroll-behavior: smooth;
}

main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  overflow-x: auto;
  overflow-y: scroll;
  margin: 1rem;
}

p {
  margin: 0;
  line-height: 1.5rem;
}

a {
  text-decoration: none;
}

i {
  font-size: 1.5rem;
  color: rgb(0, 255, 135);
}

ol,
ul {
  list-style: none;
  padding: 0;
}

label {
  cursor: text;
  color: rgb(255, 0, 75);
  font-size: larger;
}

select {
  cursor: pointer;
}

button,
input[type=button] {
  all: unset;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(255, 125, 0);
}

input[type=text],
input[type=email],
input[type=tel] {
  padding: 0.4rem;
  border: none;
  border-radius: 13px;
  -webkit-border-radius: 13px;
  -moz-border-radius: 13px;
  font-size: large;
  color: rgb(0, 255, 135);
  background-color: rgb(55, 55, 55);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus {
  outline: transparent;
}

nav#main-nav {
  display: block;
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 1px;
  background-color: rgb(45, 45, 45);
}
nav#main-nav ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
nav#main-nav ol li {
  display: inline-block;
  margin-left: 4%;
  margin-right: 4%;
}
nav#main-nav ol li a {
  padding: 0.85rem;
  color: rgb(0, 255, 135);
}
nav#main-nav ol li a i {
  font-size: 1.25rem;
  color: rgb(0, 255, 135);
}

/* Main container */
#saint-detail {
  gap: 0.75rem;
}

/* Header */
#saint-header {
  text-align: center;
}
#saint-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgb(0, 125, 255);
}

/* Primary Image */
#primary-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
#primary-media img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  -o-object-fit: cover;
     object-fit: cover;
}
#primary-media figcaption {
  font-size: 0.85rem;
  color: white;
}

#saint-attributes {
  background-color: rgb(65, 65, 65);
  border-radius: 13px;
  -webkit-border-radius: 13px;
  -moz-border-radius: 13px;
  padding: 0.5rem 0;
}

.attribute-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.attribute-list .attribute-row {
  position: relative;
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: white;
}
.attribute-list .attribute-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background-color: rgb(45, 45, 45);
}
.attribute-list .attribute-row dt {
  font-weight: bold;
  color: rgb(255, 125, 0);
  flex-shrink: 0;
}
.attribute-list .attribute-row dd {
  margin: 0;
}

/* Content Sections Container */
#saint-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* The Shared Block Style for Details/Summary */
.media-group {
  width: 100%;
  overflow: hidden;
  padding: 1rem;
  border-radius: 13px;
  -webkit-border-radius: 13px;
  -moz-border-radius: 13px;
  border: none;
  background-color: rgb(65, 65, 65);
  color: white;
}
.media-group summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255, 125, 0);
  list-style: none;
  outline: none;
  display: flex;
  align-items: center;
}
.media-group summary::-webkit-details-marker {
  display: none;
}
.media-group summary::before {
  content: "▸";
  margin-right: 0.75rem;
  color: rgb(255, 125, 0);
  transition: transform 0.2s ease;
}
.media-group[open] summary {
  margin-bottom: 1rem;
}
.media-group[open] summary::before {
  transform: rotate(90deg);
}

.section-body .saint-section p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.section-body .saint-section p:last-child {
  margin-bottom: 0;
}

/* Gallery Specific Adjustments */
.media-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.media-strip figure {
  flex: 0 0 140px;
  margin: 0;
}
.media-strip figure img {
  width: 140px;
  height: 140px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
}
.media-strip figure figcaption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}