/*
Theme Name: VisualMag
Theme URI: https://wpenjoy.com/themes/visualmag
Author: WPEnjoy
Author URI: https://wpenjoy.com
Description: VisualMag is a WordPress magazine theme built with the WordPress Site Editor, which allows you to create beautiful magazine websites with drag and drop, no coding skills required. Theme Demo: https://demo.wpenjoy.com/visualmag Documentation: https://wpenjoy.com/documentation/visualmag/
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: 
Text Domain: visualmag
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
*/
.one-line,
.two-lines,
.three-lines,
.four-lines {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical; }

.one-line {
  -webkit-line-clamp: 1; }

.two-lines {
  -webkit-line-clamp: 2; }

.three-lines {
  -webkit-line-clamp: 3; }

.four-lines {
  -webkit-line-clamp: 4; }

:root {
  --wp--custom--core-button--spacing--padding--left: 40px;
  --wp--custom--core-button--spacing--padding--right: 8px;
  --wp--custom--core-button--spacing--padding--top: 8px;
  --wp--custom--core-button--spacing--padding--bottom: 10px;
  --wp--custom--core-button--color: var(--wp--preset--color--white);
  --wp--custom--core-button--color--background: var(--wp--preset--color--primary);
  --wp--custom--core-button--color-hover: var(--wp--preset--color--primary);
  --wp--custom--core-button--color--background-hover: var(--wp--preset--color--secondary);
  --wp--custom--core-button--box-sizing: border-box;
  --wp--custom--core-button--word-break: border-box;
  --wp--custom--core-button--text-align: center;
  --wp--custom--core-button--border-radius--top-left: 0;
  --wp--custom--core-button--border-radius--top-right: 0;
  --wp--custom--core-button--border-radius--bottom-left: 0;
  --wp--custom--core-button--border-radius--bottom-right: 0;
  --wp--custom--core-button--typography--font-size: var(--wp--preset--font-size--small);
  --wp--custom--core-button--typography--font-weight: 500;
  --wp--custom--core-button--line-height: 1.7; }

*,
*::before,
*::after {
  box-sizing: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; }

header p a,
footer p a {
  text-decoration: none; }


label {
    display: none;
}

/* Bat dau play icon */
.category-videos .wp-block-post-featured-image{
    position: relative;
    overflow: hidden;
}

/* =========================
   BASE PLAY BUTTON (DESKTOP)
   ========================= */
.category-videos .wp-block-post-featured-image::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);

    width: 54px;
    height: 54px;
    border-radius: 50%;

    /* 🔥 PC: trong suốt hơn (YouTube style) */
    background: rgba(0,0,0,0.22);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

/* triangle play icon */
.category-videos .wp-block-post-featured-image::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);

    width: 0;
    height: 0;

    border-left: 12px solid rgba(255,255,255,0.85);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;

    pointer-events: none;
}

/* hover desktop */
.category-videos .wp-block-post-featured-image:hover::after{
    background: rgba(255,0,0,0.75);
    transform: translate(-50%, -50%) scale(1.1);
}

.category-videos .wp-block-post-featured-image:hover::before{
    border-left-color: #fff;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 768px){

    /* 🔥 nhỏ hơn 1 chút */
    .category-videos .wp-block-post-featured-image::after{
        width: 44px;
        height: 44px;

        background: rgba(0,0,0,0.28);
    }

    .category-videos .wp-block-post-featured-image::before{
        border-left: 9px solid rgba(255,255,255,0.85);
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
}

/* End play icon */

.wp-block-post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-block-post-title :where(a) {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: inherit;
}
.wp-block-post-title,
.wp-block-post-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.is-layout-grid {
    gap: 0.5rem;
}
.wp-block-post-featured-image {
    width: 100%;
    aspect-ratio: 400 / 266;
    overflow: hidden;
    margin-bottom: 12px;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wp-block-post-content img,
.entry-content img,
.wp-block-image img,
img {
    max-width: 100%;
    height: auto;
}
/* -------------------------------------------------------- */
/* ---// related
-------------------------------------------------------- */
/* ===== RELATED POSTS ===== */
.adsense-box{
    text-align:center;
    margin:35px 0;
    min-height:250px;
}
.adsense-title,
.adsense-middle,
.adsense-end,
.adsense-comment {
    text-align:center;
    margin:35px auto;
    min-height:250px;
}
.related-posts{
    margin-top:40px;
}

.related-posts h3{
    font-size:28px;
    font-weight:700;
    margin:0 0 20px;
}

/* Desktop */

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    column-gap:16px;
    row-gap:20px;
}

.related-item{
    display:flex;
    flex-direction:column;
}

.related-item .thumb{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    border-radius:4px;
    background:#f5f5f5;
}

.related-item .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .25s ease;
}

.related-item:hover .thumb img{
    transform:scale(1.04);
}

.related-title{
    margin-top:10px;
}

.related-title a{
    color:#222;
    text-decoration:none;
    font-size:16px;
    font-weight:700;
    line-height:1.45;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    overflow:hidden;

    min-height:2.9em;
}

.related-title a:hover{
    color:#0b73ff;
}

/* Tablet */

@media (max-width:991px){

    .related-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

}

/* Mobile */

@media (max-width:767px){

    .related-grid{
        display:block;
    }

    .related-item{
        display:flex;
        flex-direction:row;
        align-items:flex-start;
        gap:14px;
        margin-bottom:18px;
    }

    .related-item .thumb{
        width:120px;
        min-width:120px;
        aspect-ratio:16/9;
        margin:0;
    }

    .related-title{
        flex:1;
        margin-top:0;
    }

    .related-title a{
        font-size:16px;
        min-height:auto;
        -webkit-line-clamp:3;
        line-clamp:3;
    }

}

/* Start player */
.fb-comments {
background: #dddfe2;
padding: 5px;
border-radius: 5px;
display: inline-block!important;
}
.player-wrapper  {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.player-wrapper iframe  {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}	
#player {
    width: 100%;
    height: 100%;
}

.block-layer {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

#toggleButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background-color: red;
    color: #fff;
    border: none;
    border-radius: 5px;
    opacity: 1;
    transition: opacity .3s;
    z-index: 2;
    font-size: 35px;
    line-height: 60px;
    width: 70px;
    height: 70px;
    text-align: center;
}

.timeline {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 3;
}

.progress {
    width: 0;
    height: 100%;
    background-color: red;
}

/* Responsive */
@media (max-width: 600px) {
    #toggleButton {
        font-size: 28px;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
}	/* VIDEO NGANG */

.player-16x9{
    aspect-ratio: 16/9;
}
/* VIDEO DỌC */

.player-9x16{
    aspect-ratio: 9/16;
    max-width:520px;
}

/* PLAYER */
.player-wrapper iframe,
.player-wrapper video{

    width:100%;
    height:100%;

    border:0;

    display:block;

    background:#000;
}


/* MOBILE */

@media (max-width:768px){

    .player-wrapper{

        border-radius:10px;
    }

    .player-9x16{

        max-width:100%;
    }

}	
.video-wrapper1{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* iframe full khung */
.video-wrapper1 iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* overlay CHỈ góc phải trên */
.iframe-overlay{
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: 64px;
    background: transparent;
    z-index: 20;
    pointer-events: auto; /* chỉ block vùng này */
}
.video-wrapper1{
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile: Google Drive UI to hơn */
@media (max-width: 768px){
    .iframe-overlay{
        width: 72px;
        height: 56px;
    }
}
/* End player */


.related-posts{
    margin-top:50px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.related-item .thumb{
    display:block;
    aspect-ratio:16/9;
    overflow:hidden;
}

.related-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}

@media (max-width:768px){

    .related-grid{
        display:block;
    }

    .related-item{
        display:flex;
        align-items:flex-start;
        gap:15px;
        margin-bottom:18px;
    }

    .related-item .thumb{
        width:120px;
        min-width:120px;
        height:80px;
        flex:none;
    }

    .related-item h4{
        margin:0;
        flex:1;
        font-size:16px;
        line-height:1.4;
    }
}
/* -------------------------------------------------------- */
/* ---// Links Style
-------------------------------------------------------- */
a {
  text-decoration: none; }

p a {
  text-decoration: underline; }

.editor-styles-wrapper .has-no-underline a,
.editor-styles-wrapper .has-no-underline,
.has-no-underline a, .has-no-underline,
.wp-block-post-excerpt__more-link,
.wp-block-latest-posts .wp-block-latest-posts__post-title:hover,
.page-template-page-no-title .widget a:not(.wp-block-button__link),
.page-template-page-no-title .entry-summery a:not(.wp-block-button__link),
.page-template-page-no-title .entry-content a:not(.wp-block-button__link) {
  text-decoration: none; }

select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  box-sizing: border-box;
  display: block;
  font-size: var(--wp--preset--font-size--small);
  width: 100%;
  background: var(--wp--preset--color--input-field);
  border: 1px solid transparent;
  line-height: 1.75;
  padding: 7px 15px;
  color: var(--wp--preset--color--foreground); }

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: var(--wp--preset--color--foreground);
  box-shadow: none;
  outline: none;
  border: 1px solid var(--wp--preset--color--primary); }

textarea {
  width: 100%;
  height: 120px;
  padding: 15px 20px; }

input[type="checkbox"] {
  display: inline; }

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: var(--wp--preset--color--foreground); }

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: var(--wp--preset--color--foreground); }

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: var(--wp--preset--color--foreground); }

table {
  border-spacing: 0;
  border: 1px solid var(--wp--preset--color--border); }

table td,
table th {
  border: 1px solid var(--wp--preset--color--border);
  padding: 15px; }

.wp-block-preformatted {
  background-color: var(--wp--preset--color--background-secondary);
  box-sizing: border-box;
  font-family: 'Courier Prime', monospace;
  overflow: auto;
  word-wrap: break-word;
  padding: 60px; }

.wp-block-quote {
  position: relative;
  padding: 0 0 0 20px;
  border-color: var(--wp--preset--color--primary); }

.wp-block-quote p {
  font-size: var(--wp--preset--font-size--medium);
  font-style: normal;
  margin-top: 0; }
  .wp-block-quote p:last-child {
    margin-bottom: 0; }

.wp-block-quote.is-large:not(.is-style-plain), .wp-block-quote.is-style-large:not(.is-style-plain) {
  padding: 50px; }

select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  border-radius: 0;
  box-sizing: border-box;
  display: block;
  font-size: 17px;
  width: 100%;
  background: var(--wp--preset--color--input-field);
  border: 1px solid #e9e9e9;
  line-height: 1.75;
  padding: 7px 15px;
  color: var(--wp--preset--color--foreground); }

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: var(--wp--preset--color--primary);
  box-shadow: none;
  outline: none;
  border: 1px solid var(--wp--preset--color--primary); }

textarea {
  width: 100%;
  height: 120px;
  padding: 15px 20px; }

input[type="checkbox"] {
  display: inline; }

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: var(--wp--preset--color--foreground); }

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: var(--wp--preset--color--foreground); }

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: var(--wp--preset--color--foreground); }

hr {
  background-color: var(--wp--preset--color--border);
  border-width: 0;
  height: 1px;
  margin-bottom: 1.5em; }

.wp-block-search__button,
.wp-block-file .wp-block-file__button,
.wp-block-button__link {
  text-decoration: none;
  border-style: solid; }

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
  text-decoration: none;
  border-style: solid; }

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid;
  text-decoration: none; }

.wp-block-button.is-style-fill .wp-block-button__link {
  border: 2px solid transparent;
  text-decoration: none; }

.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-button__link.is-style-outline:not(.has-text-color) {
  color: var(--wp--preset--color--primary); }

input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: none;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  padding: 10px 30px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.5; }

input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white); }

.wp-block-button__link:hover {
  text-decoration: none; }

.wp-block-navigation .wp-block-navigation__responsive-container-open {
  padding: 5px;
  border: 1px solid #9292923b; }

.wp-block-navigation ul li.current-menu-item > a {
  color: var(--wp--preset--color--primary); }

.wp-block-navigation ul li .wp-block-navigation-submenu__toggle {
  background: none; }

.editor-styles-wrapper .wp-site-blocks > * + *,
.editor-styles-wrapper .wp-site-blocks > * + * + *,
.wp-site-blocks > * + *,
.wp-site-blocks > * + * + * {
  margin: 0; }

.has-box-shadow {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px; }

.line-height-clear {
  line-height: 0.5; }

.wp-block-group iframe {
  width: 100%; }

.single .entry-content iframe,
.single .entry-content video {
  aspect-ratio: 16/9; }

/*# sourceMappingURL=style.css.map */
