/* Content pages (everything except the data portal). */
/* The content sits in a white box of fixed width over the background photo
   (background and menu width: site.css). */
body { color: #222; font: 400 15px/1.6 Ubuntu, Arial, sans-serif; }
a { color: #00508f; }
a:hover { color: var(--ucsb-navy); }
.page { box-sizing: border-box; width: calc(100% - 40px); max-width: 1170px; margin: 24px auto 0;
  padding: 24px 28px 12px; background: #fff; border-radius: 6px; box-shadow: 0 2px 18px rgba(0,0,0,.35); }
@media (max-width: 700px) { .page { width: 100%; margin-top: 0; border-radius: 0; padding: 18px 16px 8px; } }
.page h1 { font: 700 30px/1.2 "Noto Serif", Georgia, serif; color: var(--ucsb-navy); margin: 0 0 16px; }
#content h2 { font-size: 22px; color: var(--ucsb-navy); margin: 26px 0 10px; }
#content h3 { font-size: 18px; color: var(--ucsb-navy); margin: 22px 0 8px; }
#content h4 { font-size: 16px; margin: 18px 0 6px; }
#content img { max-width: 100%; height: auto; }
#content table { border-collapse: collapse; margin: 10px 0; }
#content td, #content th { border: 1px solid #d5dce4; padding: 4px 8px; vertical-align: top; }
#content .posted { color: #667; font-size: 13px; margin: -8px 0 14px; }
#content .section { margin: 22px 0 0; }
#content .field-label { font-weight: bold; }
/* Lists of items (news, outreach, projects, publications, facilities). */
#content .views-row { overflow: hidden; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid #e1e6ec; }
#content .views-row img { float: left; margin: 4px 16px 8px 0; max-width: 220px; }
#content h3, #content h4, #content .views-row, #content .section { clear: both; }
/* Contact page: people. */
#content .node-person, #content .views-row-person { overflow: hidden; }
/* Home page */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.home__featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.home__card { border: 1px solid #dde3ea; border-radius: 6px; overflow: hidden; background: #fff; }
.home__card img { display: block; width: 100%; height: 140px; object-fit: cover; float: none !important; margin: 0 !important; max-width: none !important; }
.home__card a.home__card-title { display: block; padding: 10px 12px; font-weight: 500; text-decoration: none; color: var(--ucsb-navy); }
/* Home page rotating slideshow */
.slideshow { position: relative; margin: 8px 0 28px; border-radius: 6px; overflow: hidden; background: #0b1f33; }
.slideshow__slides { list-style: none; margin: 0 !important; padding: 0 !important; position: relative; aspect-ratio: 1242 / 442; }
.slideshow__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; margin: 0 !important; }
.slideshow__slide.is-active { opacity: 1; visibility: visible; }
.slideshow__slide img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; float: none !important; max-width: none !important; }
.slideshow__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 64px 30px 18px; color: #fff !important; font: 600 18px/1.35 "Noto Serif", Georgia, serif; text-decoration: none; background: linear-gradient(transparent, rgba(0,20,40,.85)); }
.slideshow__caption:hover { text-decoration: underline; }
.slideshow__prev, .slideshow__next { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.slideshow__prev { left: 10px; } .slideshow__next { right: 10px; }
.slideshow__prev:hover, .slideshow__next:hover { background: var(--ucsb-navy); }
.slideshow__dots { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 6px; }
.slideshow__dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.slideshow__dots button[aria-current="true"] { background: #FEBC11; border-color: #FEBC11; }
@media (max-width: 600px) { .slideshow__caption { font-size: 14px; padding: 8px 12px 26px; } .slideshow__prev, .slideshow__next { display: none; } }
@media (prefers-reduced-motion: reduce) { .slideshow__slide { transition: none; } }
#content .home__news-img img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 6px; margin: 4px 0 8px !important; float: none !important; max-width: none !important; }
#block-views-events-block-1 li.views-row { margin-bottom: 22px; list-style: none; }
#block-views-events-block-1 ul { padding-left: 0; }
.home aside section { border: 1px solid #dde3ea; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; background: #f7f9fb; }
.home aside h2 { margin-top: 0 !important; font-size: 18px !important; }
.home aside ul { padding-left: 18px; margin: 0; }
@media (max-width: 860px) { .home { grid-template-columns: 1fr; } }
/* Image galleries carried over from the old site: show the pictures in a simple grid. */
#content .gallery-slides { width: auto !important; height: auto !important; }
#content .gallery-frame ul, #content .gallery-thumbs ul { list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px; }
#content .gallery-slide { position: relative; }
#content .gallery-slide img { display: block; max-width: 480px; width: 100%; height: auto; border: 1px solid #dde3ea; }
#content .gallery-thumbs, #content .view-full { display: none; }
