/*!
Theme Name: Canadian Kennel Club
Theme URI: https://them.es/starter
Author: CKC
Author URI: https://www.ckc.ca
Description: A WordPress theme for the Canadian Kennel Club public website.
Version: 3.7.3
Requires at least: 5.0
Tested up to: 6.8
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: ckc
*/

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

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

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* 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. */
}

/* ============================================================
   Additional CSS from the WP Admin Area, Moved here for history
   ============================================================ */

.content.page.type-page .wp-block-ip-blog-card.ip-blog-card.container{
    padding:0px;
}

.wp-block-ip-image.full-height .ip-image__image-container, .wp-block-ip-image.full-height .ip-image__image-container img {
	height: 100% !important;
	margin-bottom: 0px !important;
}

.ip-local-navigation .ip-local-navigation__nav {
	z-index: 100 !important;
}

/* ============================================================
   CKC Breed Carousel — show the full image, no cropping
   ============================================================ */

/* 1. Frame — one consistent ratio, no fixed pixel height */
.ip-breed-carousel .ip-breed-carousel__slides {
  position: relative;
  width: 100%;
  height: auto !important;       /* kills 480px */
  aspect-ratio: 3 / 2;           /* sits mid-range of the photo library */
  max-height: 640px;             /* true 3:2 at the 957px content width */
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;           /* the letterbox colour */
}

/* 2. Slide fills the frame */
.ip-breed-carousel .ip-breed-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
}

/* 3. Image wrapper flexes instead of holding a fixed height */
.ip-breed-carousel .ip-breed-carousel__image-container {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;       /* kills 480 / 320 / 240 / 257px */
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

/* 4. Image — whole photo, never cropped */
.ip-breed-carousel .ip-breed-carousel__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

/* 5. Phones — slightly taller frame suits portrait-ish photos */
@media (max-width: 599px) {
  .ip-breed-carousel .ip-breed-carousel__slides { aspect-ratio: 4 / 3; }
}

/* 6. Small carousel variant */
.ip-breed-carousel .ip-breed-carousel__wrapper--small .ip-breed-carousel__slides {
  aspect-ratio: 16 / 9;
  max-height: 320px;
}
.ip-breed-carousel .ip-breed-carousel__wrapper--small .ip-breed-carousel__image-container {
  height: auto !important;
}

/* 7. Keep the arrows readable when they land on a letterbox bar */
.ip-breed-carousel .ip-breed-carousel__control {
  z-index: 2;
}

/* ============================================================
   Additional CSS Ends
   ============================================================ */



/* ============================================================
   Fixes On Nov 2026
   ============================================================ */

/* Local Navigation scrolls outside */
.wp-block-ip-local-navigation {
  width: 100%;
  overflow: visible !important;
  
}
@media (min-width: 1100px) {
    .wp-block-ip-local-navigation {
      width: 100% !important;
    }
}
/* Forces &nbsp and other no space chars to break */
p, span, li, h1, h2, h3, h4, h5, h6 {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* Find a puppy (ip-general-search) wrap like mobile on regular tablets */
@media (max-width: 799px) {
    .ip-general-search__content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 0px;
    }
}
/* IP Breed Grid to use available width */
/* was @media (min-width: 800px) */
@media (max-width: 1079px) {
  .wp-block-ip-breed-grid .ip-breed-grid .ip-breed-grid__cards {
    gap: 32px clamp(32px, 8vw, 80px);
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: center;
  }
}
@media (max-width: 440px) {
  .wp-block-ip-breed-grid .ip-breed-grid .ip-breed-grid__cards {
    grid-template-columns: minmax(0, 200px);
  }
}
/* Partner carousel: one full-width slide below 800px, logo kept at desktop size */
@media (max-width: 799px) {
  .ip-partner-carousel__item {
    flex-basis: 100%;
  }

  .ip-partner-carousel__logo {
    max-width: 220px;
  }
}
/* Breed pages: show the title before the "On this page" menu on mobile/tablet */
@media (max-width: 1079px) {
  article:has(> .wp-block-ip-local-navigation + .ip-secondary-page-title) {
    display: flex;
    flex-direction: column;
  }

  article:has(> .wp-block-ip-local-navigation + .ip-secondary-page-title) > .ip-secondary-page-title ~ * {
    order: 2;
  }

  article:has(> .wp-block-ip-local-navigation + .ip-secondary-page-title) > .wp-block-ip-local-navigation {
    order: 1;
  }
}
/* Keyboard focus ring for the CKC block buttons (homepage hero, Find a puppy, etc.).
   The ip-ckc-blocks plugin removes the outline on focus and only adds a 10% blue
   glow, which is invisible. Brand blue ring with a white inner ring, so it shows
   on white, light and dark/photo backgrounds. :focus-visible = keyboard only, so
   mouse clicks look the same as before. !important beats the plugin's :focus rules. */
.ip-three-column-hero__button:focus-visible,
.ip-general-search__button:focus-visible,
.ip-hero-banner__button:focus-visible,
.ip-centered-text__button:focus-visible,
.ip-breed-search__button:focus-visible,
.ip-breed-info__button:focus-visible,
.ip-breeder-search__button:focus-visible,
.ip-tabs-carousel__button:focus-visible {
  outline: 3px solid var(--ckc-color-brand-blue, #2575d0) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--ckc-color-white, #fff) !important;
}
/* Partners & affiliates carousel – arrow buttons (Figma: Carousel-Partners Chevron) */
.ip-partner-carousel .ip-partner-carousel__body {
	grid-template-columns: 64px minmax(0, 1fr) 64px;
}

.ip-partner-carousel .ip-partner-carousel__arrow {
	position: relative;
	width: 64px;
	height: 64px;
	background-color: var(--ckc-color-brand-gold-10, rgba(233, 190, 52, 0.1));
	color: var(--ckc-color-brand-gold-darker-20, #b59428);
}

.ip-partner-carousel .ip-partner-carousel__arrow svg {
	display: none;
}

.ip-partner-carousel .ip-partner-carousel__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M28.2667 16L25.0667 18.6667L37.3333 32L25.0667 45.3333L28.2667 48L42.6667 32L28.2667 16Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M28.2667 16L25.0667 18.6667L37.3333 32L25.0667 45.3333L28.2667 48L42.6667 32L28.2667 16Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.ip-partner-carousel .ip-partner-carousel__arrow--prev::before {
	transform: scaleX(-1);
}

.ip-partner-carousel .ip-partner-carousel__arrow:hover:not(:disabled) {
	background-color: rgba(233, 190, 52, 0.22);
	color: var(--ckc-color-brand-gold-darker-20, #b59428);
}

.ip-partner-carousel .ip-partner-carousel__arrow:active:not(:disabled) {
	background-color: rgba(233, 190, 52, 0.35);
}

.ip-partner-carousel .ip-partner-carousel__arrow:disabled {
	background-color: var(--ckc-color-brand-gold-05, rgba(233, 190, 52, 0.05));
	color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 799px) {
	.ip-partner-carousel .ip-partner-carousel__body {
		grid-template-columns: 64px minmax(0, 1fr) 64px;
	}
}
/* ============================================================
   Fixes On Nov 2026 Ends
   ============================================================ */