/*
Theme Name: Abisko Child
Theme URI: 
Author: Ahmad Ajlouny
Author URI: 
Description: Child theme for customizations and template overrides for the Abisko theme.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: abisko
Text Domain: abisko-child
Tags: 
*/

/* Behance Gallrry ***************/
/* set margins to 0 */
figure.behance-style-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
figure.behance-style-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	margin-bottom: 0px;
}
figure.behance-style-gallery.wp-block-gallery {
	gap: 0px;
}
/* add border */
.behance-style-gallery {
	border: 1px solid #E5E5E5;
}
/* Zeina Idintity Gallery */
.postid-1561 .wp-block-image:not(:last-child){
	border-bottom: 2px solid #22525B;
}
/* end behance gallrry */

/* add social media icon 
.wp-block-social-links li {
	width:36px;
}
.wp-block-social-links li a[href*="shutterstock.com"] svg {
	display: none;
}
.wp-block-social-links li a[href*="shutterstock.com"] {
	background-image: url('/wp-content/uploads/2020/07/shutterstock-icon.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}
 end add social media icon */

/******************* resume */
p.school-location,
p.company-location {
	
}
p.duration {
	margin-top:0;
	font-family: var(--wp--preset--font-family--source-serif-pro);
	color: gray;
	font-style: italic;
}
/* skills */
.skills-title{
	margin-bottom:0;
	color:#222;
	font-family:sans-serif;
	font-size:0.7em;
	letter-spacing: 8px;
	text-transform: uppercase;
}
ul.skills {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding:0;
	margin-top:0;
	margin-bottom: calc(2 * var( --wp--style--block-gap ));
}
ul.skills li {
	background-color:#333;
	color:#eee;
	margin: 0.4em 0.4em 0 0;
	padding: 0.2em 0.7em;
	border-radius: 5px;
	font-family:sans-serif;
	font-size:0.8em;
}
/* end skills */

.contract {
	border-left: 2px solid #eee;
}
/* end resume */

.wp-block-template-part .short-header-image {
	margin-top: - var( --wp--style--block-gap );
}

.my-rtl {
	direction:rtl;
}
p.my-rtl {
	direction:rtl;
	unicode-bidi: bidi-override;
	text-align: right;
}
.gs_logo_single--inner img{
	max-height: 300px;
	max-width: 300px;
}

/* Print Styles 
@media print {
	body * {
		font-size: 95%;
		margin-top: var	
	}
	
}*/
/*function ahmad_add_google_fonts() {
 
wp_enqueue_style( 'ahmad-google-fonts', 'https://fonts.googleapis.com/icon?family=Material+Icons+Outlined', false ); 
}
 
add_action( 'wp_enqueue_scripts', 'ahmad_add_google_fonts' );*/

/* GuideConsultants Gallery guideInsta ***************/
/*.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
    width: calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667);
}*/

/* Target only galleries with class 'gallery--portrait-grid' */
.wp-block-gallery.gallery--portrait-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.wp-block-gallery.gallery--portrait-grid .wp-block-image {
  width: auto !important; /* override default WP widths */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
	box-sizing: border-box;
	border: 1px solid #e1e5e9;
	border-radius: 5px;
}

.wp-block-gallery.gallery--portrait-grid .wp-block-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay layer */
.wp-block-gallery.gallery--portrait-grid .wp-block-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show on hover */
.wp-block-gallery.gallery--portrait-grid .wp-block-image:hover::after {
  opacity: 1;
}
/* Make sure overlay doesn't block clicks */
.wp-block-gallery.gallery--portrait-grid .wp-block-image::after,
.insta-overlay-icons {
  pointer-events: none;
}

/* Footer */
.site-footer .wp-block-social-links .wp-social-link a {
    padding: 0;
}
.site-footer .wp-block-site-logo {
	filter: invert(100%);
}
.wp-site-blocks {
	padding-bottom:0;
}
/* Fix Services auto margins from max-width */
.stk-block:is(.aligncenter,.alignwide,.alignfull)>.stk-content-align.alignwide {
	max-width:100%;
}
/*
.wp-block-post-navigation-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.post-navigation-link-previous a::before {
    content: "←";
}

.post-navigation-link-next a::after {
    content: "→";
}*/

/* 1. Ensure the container takes up 100% width */
.wp-block-query-pagination.is-vertical {
    width: 100%;
}

/* 2. Force the middle wrapper div to stretch fully */
.wp-block-query-pagination.is-vertical > .wp-block-post-navigation-link {
    width: 100%;
    display: block;
}

/* 3. Replicate Abisko's theme style on the link itself */
.wp-block-post-navigation-link a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 4. Fix 'Previous' alignment so the arrow stays on the left next to text */
.post-navigation-link-previous a {
    justify-content: flex-start;
}