/*!
Theme Name: rebecca-pow
Theme URI: https://hatched.agency
Author: Hatched
Author URI: https://hatched.agency
Description: 
Version: 1.0.675
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: rugby
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Center all pagination links inside .paigton */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 25px;               /* spacing between each number/arrow */
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
  color: #000 !important;
  font-size: 18px;
}

.pagination .page-numbers:hover {
  color: #555 !important;
  text-decoration: underline;
}

.pagination .current {
  font-weight: bold;
  text-decoration: underline;
  color: #000 !important;
}

.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.news-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.news-slide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  min-width: 100%;
  box-sizing: border-box;
  padding: 1rem 2rem;
}

.news-item {
  background: #fff;
}

.news-item .thumb {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover { opacity: 1; }


/* Limit width of post content on desktop */
.single .entry-content,
.single .post .col-12 {
  max-width: 800px;   /* limit width */
  margin: 0 auto;     /* center content */
  padding: 0 1rem;    /* side padding */
}

/* Make images scale down instead of overflowing */
.single .entry-content img,
.single .post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Make embedded videos responsive */
.single .entry-content iframe,
.single .post iframe,
.single .entry-content video,
.single .post video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

@media (min-width: 1024px) {
  .media-type-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
  }

  .media-type-item {
    flex: 1 1 0;
    margin-bottom:10px;
  }

  .media-type-item a {
    display: flex;                   
    flex-direction: row;             
    justify-content: center;         
    align-items: center;             
    height: 100%;                   
    text-align: center;
    padding: 15px 10px;               
  }

  #header {
  margin-right:20px;
}
}

@media screen and (max-width: 767px) {
    .logo {
        margin: .4em 0 0 0 !important;
    }
}


#header .socials {
  padding:0px !important;
}

.media-bank {
  padding:3em 2em !important;
}

.primary.disabled {
  pointer-events: none;
}

.media-bank .primary {
  display: flex;                   
  align-items: center;               
  justify-content: space-between;  
  text-align: left;
  white-space: normal;               
  gap: 10px;                        
}

.media-bank .primary::after {
  width: 44px;                     
  height: 44px;
  top: 50%;
  transform: translateY(-50%);      
  background-size: 450px 46px;      
  right: 15px;
}

.media-bank .primary.television {
  white-space: normal;         
  text-align: left;             
  line-height: 1.2;             
  padding-right: 3.5em;         
}

.media-bank .primary.television::after {
  top: 50%;
  transform: translateY(-50%);  
  width: 40px;                  
  height: 40px;
  background-size: 425px 46px;  
  right: 15px;
}




/* Only affect small screens */
@media (max-width: 1024px) {
    .media-type-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .media-type-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .media-type-item a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Make single post container full width */
.single-post .container {
    max-width: 1400px !important; /* bigger than default 1140px */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make the content column full width and remove Bootstrap col-10 limits */
.single-post .post .col-10 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Center content block and limit its width for readability */
.single-post .entry-content {
    max-width: 1500px;
    margin: 0 auto;
    font-size: 1.125rem; /* slightly bigger text */
    line-height: 1.8;
}

/* Align title with content */
.single-post .entry-title {
    max-width: 1500px;
    margin: 0 auto 2rem auto;
    text-align: left;
    padding: 0 2rem;
}

/* Make post titles larger and more prominent */
.post .entry-title {
    font-size: 2.5rem;     /* Big enough to be clearly a heading */
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Make sure content is readable and well spaced */
.post .entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

/* Optional: limit super-wide screens for readability */
@media (min-width: 1200px) {
    .post .col-10 {
        max-width: 1000px;
    }
}
/* Default: full width on mobile */
.post .entry-content iframe,
.post .entry-content video,
.post .entry-content embed {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* On desktop (min-width: 992px): shrink to 40% width */
@media screen and (min-width: 992px) {
    .post .entry-content iframe,
    .post .entry-content video,
    .post .entry-content embed {
        max-width: 40%;
        width: 30%;
        margin: 0 auto; /* center it */
    }
}

/* Optional: maintain 16:9 ratio for iframes like YouTube/Vimeo */
.post .entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.post .entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}


