/*
Theme Name: NYT-like FSE
Theme URI: https://example.com/nyt-like-fse
Author: Cursor Agent
Description: A Gutenberg-first Full Site Editing (FSE) news/editorial theme with a NYT-style masthead, directory menu, and multi-column front page.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 2.0.0
Text Domain: wp-nyt-fse
*/

/* Layout hardening */
.wp-site-blocks {
  overflow-x: clip;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main {
  flex: 1;
}

/* Masthead typography tuning */
.nyt-masthead .wp-block-site-title {
  text-align: center;
}
.nyt-masthead .wp-block-site-title a {
  letter-spacing: -0.02em;
}

/* Sections directory (details) */
.nyt-sections > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nyt-sections > summary::-webkit-details-marker { display: none; }
.nyt-sections[open] > :not(summary) {
  background: var(--wp--preset--color--paper);
  border-top: 1px solid var(--wp--preset--color--hairline);
  border-bottom: 1px solid var(--wp--preset--color--hairline);
  padding: 1.25rem 0;
  margin-top: 0.75rem;
}

/* Make the directory panel span the header */
.nyt-masthead .nyt-sections[open] > :not(summary) {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
}
.nyt-masthead {
  position: relative;
}
.nyt-sections h4 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
}
.nyt-sections ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.nyt-sections li { margin: 0.35rem 0; font-size: 0.92rem; }

/* Footer directory lists */
.nyt-footer .wp-block-list { list-style: none; padding-left: 0; }
.nyt-footer .wp-block-list li { margin: 0.25rem 0; }

.entry-content {
  p {
    font-size: 18px!important;
  }
}

.single {
  .taxonomy-category a {
    background: #000;
    color: #fff;
    padding: 5px 10px;
  }
  iframe {
    width: 100%!important;
  }
  figure {
    max-width: 100%;
  }
  .single-image {
    img {
      height: auto;
      max-width: 100%;
      width: 100%;
    }
  }
  @media (max-width: 900px) {
    .left_col_single {
      order: 2;
    }
  }
}

.category {
  .child-category-links__link {
    background: #000;
    color: #fff;
    padding: 0px 5px;
  }
}

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
blockquote p {
  display: inline;
}


/*search block*/
/* Toggle search block */
/*.wp-block-search.toggle-search {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*}*/

/*.wp-block-search.toggle-search .wp-block-search__inside-wrapper {*/
/*  display: flex;*/
/*  align-items: stretch;*/
/*}*/

/*.wp-block-search.toggle-search .wp-block-search__input {*/
/*  width: 0;*/
/*  min-width: 0;*/
/*  padding-left: 0;*/
/*  padding-right: 0;*/
/*  opacity: 0;*/
/*  border: 0;*/
/*  transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;*/
/*}*/

/*.wp-block-search.toggle-search.is-open .wp-block-search__input {*/
/*  width: 260px;*/
/*  padding-left: 12px;*/
/*  padding-right: 12px;*/
/*  opacity: 1;*/
/*  border: 1px solid currentColor;*/
/*}*/

/*.wp-block-search.toggle-search .wp-block-search__button {*/
/*  cursor: pointer;*/
/*}*/



.article-gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.article-gallery__item {
  margin: 0;
}

.article-gallery__link {
  display: block;
  overflow: hidden;
}

.article-gallery__image {
  display: block;
  width: 100%;
  height: auto;
}

.article-gallery:not(.article-gallery--original) .article-gallery__link {
  aspect-ratio: var(--gallery-ratio, 1 / 1);
}

.article-gallery:not(.article-gallery--original) .article-gallery__image {
  height: 100%;
  object-fit: cover;
}

.article-gallery__caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .article-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}




/*body.article-not-selected .hide-before-selected {*/
/*  display: none !important;*/
/*}*/

/*body.article-not-selected button[type="submit"],*/
/*body.article-not-selected input[type="submit"] {*/
/*  display: none !important;*/
/*}*/